Android 7.1.1 Release 55 (N6F27M)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCWdJ8xwAKCRDorT+BmrEO
eDbkAJ91RBHqIDEY10kQtKBBWz6YKUsc/ACfVyC4wJYsoyO0yWfRswxWJl3sma4=
=3WM1
-----END PGP SIGNATURE-----
Fix out of bound read in libziparchive

We should check the boundary of central directory before checking its
signature. Swap the order of these two checks.

Bug: 36392138
Test: libziparchive doesn't read the signature after boundary check fails.
Change-Id: Ie89f709bb2d1ccb647116fb7ccb1e23c943e5ab8
(cherry picked from commit 74464a1361562d4042a67c5d66bfcf396ee7e59c)
(cherry picked from commit d9fd1863f46d5185eaaebc0803ee9c5da3ef110b)
1 file changed