Skip to content
Commit acc52962 authored by Evan Severson's avatar Evan Severson
Browse files

[BackupHelper] Break the loop when END_DOCUMENT is reached

`skipToEndOfTag` does not consider the case END_DOCUMENT when calling
parser.next(); this causes an infinite loop. `skipToEndOfTag` is reached
because we catch an exception due to a corrupted file causing an
unexpected EOF and just continue to try to parse the file.

Relnote: Break out of loop in during restore at END_DOCUMENT
Bug: 299676312
Test: Push corrupted file force delayed restore by installing
Change-Id: I3eed0447cee8205c1db0d6b3f103938a4a4bdc07
parent 77732f84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment