commit | 5bd5325bd61414480091b262204f1a45d57c1884 | [log] [tgz] |
---|---|---|
author | Aurash Mahbod <aurash@google.com> | Mon Jun 23 23:03:35 2014 -0700 |
committer | Aurash Mahbod <aurash@google.com> | Tue Jun 24 15:35:01 2014 -0700 |
tree | b9a855d553490498fbd796cbbbac8bf4f217c89b | |
parent | 527f964cc7df8e807deb21469a537a6f6800e0fb [diff] |
Fix crash/OOM in DiskBasedCache DiskBasedCache.writeHeader() can throw an IOException and swallow it. This causes the cache entry to be partially written followed by the entry's data. When reading back, it is possible to read back the data segment (garbled part) when attempting to parse the cache header. Change-Id: I3022ca1566bc60e5869bb4ec384c866b4ba5c1c5