diff options
author | Jeff Sharkey <jsharkey@android.com> | 2020-09-28 12:09:44 -0600 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-09-28 19:13:23 +0000 |
commit | f3175d9b9a2387175be14c90ff62a6bf2abd49c6 (patch) | |
tree | 9db418a8df829bb385e16f33b2fde1a3b3cd461c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 209b3816e2e029e150f58c85e4dc1cbda29709e9 (diff) |
Fix off-by-one bounds checking bug.
It's reasonable for a zero-length field to have its start offset
placed exactly at on the edge of the underlying buffer; we'll catch
any buffer overflows moments later when we verify the end offset
calculated from bufferSize.
Bug: 169547603
Test: atest libandroidfw_tests
Test: atest CtsDatabaseTestCases
Test: atest FrameworksCoreTests:android.database
Change-Id: I3d955f222343bd7ae63eaba7e367126dc136ecdf
(cherry picked from commit f250e4f3daca160a7759fbb0e549b26d2a551cf8)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions