Fix buffer underflow bug in apkzlib.

If the extra fields has a header with data size that exceeds the available
buffer, ExtraField would throw a buffer underflow instead of IOException
and this would not be caught in ZFile's update.

Test: included
Bug: 68763077
Change-Id: I34db018526c8cd3a2bc3ebf6fb97604ed941ddfa
2 files changed
tree: 426056157ba560232898c93e43b72a5b132ce8de
  1. src/
  2. apkzlib.iml
  3. BUILD
  4. build.gradle