diff options
author | twyen <twyen@google.com> | 2017-07-19 10:43:51 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-25 16:42:59 +0000 |
commit | 35a248f6351664ab1b3cd7b933efc30521312d39 (patch) | |
tree | 95a6732be9707b5468eb7de10ca59a7f269a31e5 /java/com/android/dialer/phonenumberproto | |
parent | 193c724dda95d6ac29b2ab90483080099986977f (diff) |
Handle corrupted persistent log
Previously if the log is corrupted for any reason(interrupted writes, cosmic rays, bad programming skills), the log reader will get an incorrect entry length and try to read a few GB of data.
In this CL a prefix and postfix is added to each log entry. If it doesn't match or if the entry length is dubious, the logs will be purged.
All existing logs will be purged upon sending feedback as a result of the new format.
Bug: 63678731
Test: PersistentLoggerTest
PiperOrigin-RevId: 162504759
Change-Id: I85f39fbc6e9738b9fb0a251131b77d8a15fe44f6
Diffstat (limited to 'java/com/android/dialer/phonenumberproto')
0 files changed, 0 insertions, 0 deletions