summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorStanislav Zholnin <zholnin@google.com>2021-05-05 13:44:07 +0100
committerStanislav Zholnin <zholnin@google.com>2021-05-07 08:12:30 +0100
commit4762e7e8db6ba90d8a78ed815d84a4ac17fdbe41 (patch)
treee7343c8991166d39ddb5b1c8beb4db1e99c3d3d6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta7e8d89a3c10d14e2dfe8d4865b98c937e036a35 (diff)
Fix bug in BaseParceledListSlice implementation.
Under specific conditions, parceled list can be written in such a way that writing of new list starts when destination parcel is just above MAX_IPC_SIZE. In that case "0" is written to parcel to indicate that there will be no inline items written and writing of the list will start with extra items. When unparcelling such list, listElementClass is not determined and stays equal to null, because it only can be determined if there were some inline items read first, before switching to extra. This leads to random unparcelling failures with the following error message: Can't unparcel type <typename> in list of type null. Test: manually verified Bug: 186193371 Fix: 151481291 Bug: 156514418 Fix: 169191099 Change-Id: I849bf46158b6d9b109139b19b93a6a1ba16ecc77
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions