platform_system_core/adb/fastdeploy
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
..
deployagent fastdeploy: fix tests. 2019-11-08 15:39:50 +00:00
deploypatchgenerator Fix SEGV in libziparchive with malformed zip file. 2019-12-17 08:39:09 -08:00
proto FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
testdata FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
Android.bp deployagent: set sdk version. 2019-10-17 16:20:26 -07:00
AndroidManifest.xml FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
AndroidTest.xml FastDeploy refactor: 2+GB APK support, optimizations, tests. 2019-10-02 13:25:03 -07:00
OWNERS Add OWNERS file to fastdeploy so idries@ can approve changes 2018-11-28 16:55:00 +00:00