summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2017-07-19 10:43:51 -0700
committerEric Erfanian <erfanian@google.com>2017-07-25 16:42:59 +0000
commit35a248f6351664ab1b3cd7b933efc30521312d39 (patch)
tree95a6732be9707b5468eb7de10ca59a7f269a31e5 /java/com/android/dialer/app
parent193c724dda95d6ac29b2ab90483080099986977f (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/app')
0 files changed, 0 insertions, 0 deletions