commit | b17fd2f8fe468e7d32e713b442f610cd33e4e7a9 | [log] [tgz] |
---|---|---|
author | Almaz Mingaleev <mingaleev@google.com> | Wed Jul 10 12:30:24 2024 +0100 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Aug 07 23:08:00 2024 +0000 |
tree | 21f48e27cbb7924b3e2b4aa3d0e4e91aa4ae862c | |
parent | 4ce63484144d6e245ad55e7a0027ea075cbd804c [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 udc-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 c7b495dc8c466de602cd7b78468864acd6b2f9b3) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4ee0654067678ec7c52582bdef586ff15a525f47) Merged-In: I545cdd49ec3cc138331145f4716c8148662a478b Change-Id: I545cdd49ec3cc138331145f4716c8148662a478b