summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorOrion Hodson <oth@google.com>2019-04-15 16:14:51 +0100
committerOrion Hodson <oth@google.com>2019-04-16 11:29:02 +0100
commit4174b7691f5c667598dc74ac80829a1bffd9bd4a (patch)
tree56aa809bf5bbcac1c499e0f27242a5c99548cd57 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentdf573a62108d001dad9be8c66386561f58b6de15 (diff)
Ensure all fields of AutoBufferPointer are initialized
In the process of revising libnativehelper interface, the initialization of the fArray field was dropped. This change fixes this and adds regression tests. In writing the tests, it became apparent that the AutoBufferPointer destructor would crash if the underlying buffer was heap array backed and the buffer position was non-zero. ReleasePrimitiveArrayCritical was called with the element corresponding to the current position rather than the first element. Bug: b/130390512 Test: atest FrameworksCoreTests:android.graphics.BitmapTest (cherry picked from commit e522c99430ec9ee0b4daa588dbcaea4824bc3f70) Merged-In: I319512aaede7ba8af5d013c9281417695abf9099 Change-Id: I319512aaede7ba8af5d013c9281417695abf9099
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions