forked from koush/android_system_core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libzipfile: add additional validity checks.
- Make sure the start and end of the data for a given entry are within the allocated buffer. - Make sure all central directory entries start and end within the central directory buffer. - Reject zip file entries that have no filenames. CYNGNOS-3303 bug: 30916186 test: test_zipfile with known bad zip files. Change-Id: Ibf3f6469e60c85ec1608f5ce613d40867d2d09b7
- Loading branch information
Showing
2 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters