Add a check to ensure the filename boundary doesn't exceed the mapped
memory region. Also add the corresponding unit test.
Bug: 28802225
Test: New unit test passes.
Merged-In: Ibf543a7da3d7898952e9eb332c84cdfc67cf5aa4
Change-Id: Ibf543a7da3d7898952e9eb332c84cdfc67cf5aa4
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| bad_crc.zip | ||
| bad_filename.zip | ||
| crash.apk | ||
| declaredlength.zip | ||
| dummy-update.zip | ||
| large.zip | ||
| valid.zip | ||