Commit Graph

11 Commits

Author SHA1 Message Date
Narayan Kamath 61f27551c7 resolve merge conflicts of a47780b to lmp-dev
Test: test_zipfile with known bad files.

Change-Id: I25dde73c9b94d253c8017e441e89cb7339907c7f
2016-09-21 09:57:39 +01:00
Narayan Kamath a1ec23634a 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.

bug: 30916186
test: test_zipfile with known bad zip files.
Change-Id: Ibf3f6469e60c85ec1608f5ce613d40867d2d09b7
2016-09-13 16:08:38 +01:00
Ian Rogers 46601793e3 Build host with multilib both enabled.
Change-Id: I58fa91bc097dfba573b6db27e389f5ed6556032f
2014-06-05 11:42:26 -07:00
Mark Salyzyn ab886745bc libzipfile: turn on -Werror
- resolve some unused references

Change-Id: Ia3748c7e25963c2fd3d58e175177f0f4dd405997
2014-05-14 08:33:55 -07:00
Ariel Bernal 62188564fa Fixed warnings test_zipfile
Fixed implicit declaration of strcmp warning
Fixed switch case of enumeration not handled

Change-Id: Ic3f3690a2e749235b1b0dffd252b119855ad36c0
Author: Ariel Bernal <ariel.j.bernal@intel.com>
Reviewed-by: Tareq A Siraj <tareq.a.siraj@intel.com>
2012-08-20 16:38:37 -04:00
Edwin Vane 8d9aa37a50 Fix a print format warning
Change-Id: I30a6a9835073a7c0f5751fc34aed958c91a050ee
Author: Edwin Vane <edwin.vane@intel.com>
Reviewed-by: Tareq A Siraj <tareq.a.siraj@intel.com>
2012-08-13 12:29:46 -04:00
Elliott Hughes 90764cfc76 Fix a call to memset(3) with reversed arguments.
Bug: 1999244
2009-09-03 11:52:31 -07:00
Doug Zongker 287c71ca84 fix decompression bug in fastboot
fastboot passes the *uncompressed* length of the file as the length of
the input to the inflate() call, which happens to work unless the
compressed data is actually larger than the uncompressed data (which
it can be for very small files).  Fix this to pass the correct
compressed length down to the inflate call.
2009-06-16 17:36:04 -07:00
The Android Open Source Project dd7bc3319d auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
The Android Open Source Project e54eebbf1a auto import from //depot/cupcake/@135843 2009-03-03 18:29:04 -08:00
The Android Open Source Project 4f6e8d7a00 Initial Contribution 2008-10-21 07:00:00 -07:00