summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRyan Mitchell <rtmitchell@google.com>2018-03-29 15:49:10 -0700
committerRyan Mitchell <rtmitchell@google.com>2018-04-04 15:56:11 +0000
commit2ad530d76c55c86d28c893b904b4f12aca65443f (patch)
treebe58c23ee4854242aba55090d4cce6c07f75b8dc /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta926126a8bc89c1a6bd7fa8a76332476eba0d954 (diff)
Added decoding of truncated AAPT string lengths.
AAPT incorrectly writes a truncated string length when the string size exceeded the maximum possible encode length value (0x7FFF). To decode a truncated length, this change iterates through length values that end in the encode length bits. Strings that exceed the maximum encode length are not placed into StringPools in AAPT2. Test: Successfully ran broken apps from the duplicates of the bugs provided and created tests Bug: 69320870 Change-Id: I99dd9b63e91ac250f81d5dfc26b7c0e6276ae162 (cherry picked from commit ea9e8b447a5d24d1b199507dac203c69d81736e2)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions