android_system_core/libziparchive
Narayan Kamath 162b705801 zip_archive: validate data descriptor contents.
- Ensure that the compressed and uncompressed lengths in the data
  descriptor match those in the central directory.

- Calculate CRCs for compressed entries and ensure that those CRCs
  match the information in the central directory / data descriptor.
  This is currently guarded by a flag and will be turned on at a
  later stage.

- Finally, always trust the LFH when it comes to indicating the
  existence of a data descriptor. We no longer require this info to
  match the central directory to bring this in line with other zip
  processing tools. (see NOTE in the included change).

Bug: 62047801
Test: zip_archive_test
Change-Id: Icceea66a8b1937c08a4af9aee97bc77ad7218c0f
2017-06-14 14:29:53 +01:00
..
testdata
.clang-format add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
Android.bp Merge "add a performance benchmark for libziparchive" 2017-05-30 19:44:52 +00:00
entry_name_utils-inl.h
entry_name_utils_test.cc
zip_archive.cc zip_archive: validate data descriptor contents. 2017-06-14 14:29:53 +01:00
zip_archive_benchmark.cpp add a performance benchmark for libziparchive 2017-05-30 10:50:14 -07:00
zip_archive_common.h
zip_archive_private.h
zip_archive_stream_entry.cc liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
zip_archive_test.cc zip_archive: validate data descriptor contents. 2017-06-14 14:29:53 +01:00
zip_writer.cc ZipWriter: Keep LFH and CFH in sync 2017-04-11 01:45:25 +00:00
zip_writer_test.cc Merge "ZipWriter: Do not write DataDescriptor for STORED files" 2017-04-07 00:33:20 +00:00