diff options
author | Jin Seok Park <jinpark@google.com> | 2020-12-21 17:01:59 +0900 |
---|---|---|
committer | Jin Seok Park <jinpark@google.com> | 2021-01-05 14:46:03 +0900 |
commit | 18b36460b0608c2e2f35472d4d75c95d2c31437c (patch) | |
tree | 8085b19b69e4d5b9dcd3f4de96aac6da02eeb59c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f57116d892ffa7895886bcdb310040dd184828b3 (diff) |
Prevent skipBytes from infinitely looping
Skipping bytes on a stream may return 0 forever (e.g. network
stream is disconnected), so need to break out of while loop if that
happens.
Bug: 175808980
Test: N/A (difficult to reproduce this case)
Change-Id: Ic6ed131cc4bbff3c01d7d577e8fc1d6d5804c598
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions