commit | dc4486b48940105f3897590c9bc057a438659352 | [log] [tgz] |
---|---|---|
author | Almaz Mingaleev <mingaleev@google.com> | Wed Jul 10 13:38:35 2024 +0100 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Aug 07 23:08:15 2024 +0000 |
tree | 7cab9a1c086fd6f72a663d9e95b545a4bd218f54 | |
parent | 7267082c39a25fb5afbc4eeb5752c1b276d29344 [diff] |
Do not accept zip files with invalid headers. According to Section 4.3.6 in [1] non-empty zip file starts with local file header. 4.3.1 allows empty files, and in such case file starts with "end of central directory record". This aligns ZipFile with libziparchive modulo empty zip files - libziparchive rejects them. Tests are skipped because sc-dev branch uses ART module prebuilts, but builds tests from sources which leads to presubmit failures. Ignore-AOSP-First: b/309938635#comment1 [1] https://pkwaredownloads.blob.core.windows.net/pem/APPNOTE.txt Bug: 309938635 Test: CtsLibcoreTestCases Test: CtsLibcoreOjTestCases (cherry picked from commit 288a44a1817707110cdf5a3a6ef8377c6e10cce2) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5a6809400627ab1c8dbb76f92dfb89daae6b2f65) Merged-In: I545cdd49ec3cc138331145f4716c8148662a478b Change-Id: I545cdd49ec3cc138331145f4716c8148662a478b