platform_system_core/libziparchive/testdata
Elliott Hughes fba2a1a1ec Fix SEGV in libziparchive with malformed zip file.
d77c99ebc3 changed MappedFile to return a
bogus zero-length mapping on failure rather than nullptr. None of the
calling code was changed, though, and it seems like doing so would be a
bad idea. Revert that part of the change.

Add missing tests, and tidy up some of the logging. Also remove
single-use or obfuscatory constants from the tests.

The new "empty.zip" was created by using zip(1) to create a zip file
with one entry, then using `zip -d` to remove it.

The new "zero-size-cd.zip" was created by using zip(1) to create a zip
file containing a single empty file, and then hex editing the two byte
"size of the central directory" field in the "end of central directory
record" structure at the end of the file. (This is equivalent to, but
much smaller than, the example zip file provided by the bug reporter.)

Bug: http://b/145925341
Test: treehugger
Change-Id: Iff64673bce7dae886ccbc9dd6c2bbe18de19f9d2
2019-12-17 08:39:09 -08:00
..
bad_crc.zip Add a ZipArchiveStreamEntry class. 2016-01-14 12:30:20 -08:00
bad_filename.zip Check filename memory bound when parsing ziparchive 2016-10-10 14:26:15 -07:00
crash.apk Fix out of bound access in libziparchive 2016-09-22 11:24:42 -07:00
declaredlength.zip
dummy-update.zip Add functions in recovery/minzip to libziparchive 2016-10-15 23:16:34 -07:00
empty.zip Fix SEGV in libziparchive with malformed zip file. 2019-12-17 08:39:09 -08:00
large.zip Add a ZipArchiveStreamEntry class. 2016-01-14 12:30:20 -08:00
valid.zip
zero-size-cd.zip Fix SEGV in libziparchive with malformed zip file. 2019-12-17 08:39:09 -08:00