summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2015-11-04 10:45:49 -0800
committerChristopher Tate <ctate@google.com>2015-11-04 10:57:37 -0800
commite491d142b2489bef96c8dce65c04a7a9c445f6e1 (patch)
tree30c9e33a0cd79fcd631c7adf3c853bdd12ea9f04 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent4f16073556f7978708fb71c87628cfe1692412d5 (diff)
Fix BlobBackupHelper state tracking
The disk-friendly use of BufferedInputStream in state parsing was actually breaking the state management system when multiple helpers are involved in backup. The BufferedInputStream would blithely pre-fetch 8K from the state file -- but that would consume some state data that the dispatcher and subsequent helpers needed to see in order to properly evaluate prior state themselves. The contract here is that when using the helper mechanism, state-data consumption must *only* consume as much data as the helper originally stored into the file. Switching to a direct-read stream instead fixes the problem by avoiding read overrun. The rest of the changes are expanded debugging output that made diagnosis possible. Bug 25473872 Change-Id: I91de38dfec96f589700479f41ac26f144ba4463c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions