Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9244a6b5 authored by Adam Lesinski's avatar Adam Lesinski Committed by android-build-merger
Browse files

Merge "libziparchive: verify that gpb flags match"

am: 04c4f40a

Change-Id: I767f07b922a89203bf69b5e41c0897f81135759e
parents b3ce850b 04c4f40a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -564,9 +564,9 @@ static int32_t FindEntry(const ZipArchive* archive, const int ent,
  // Paranoia: Match the values specified in the local file header
  // to those specified in the central directory.

  // Verify that the central directory and local file header agree on the use of a trailing
  // Data Descriptor.
  if ((lfh->gpb_flags & kGPBDDFlagMask) != (cdr->gpb_flags & kGPBDDFlagMask)) {
  // Verify that the central directory and local file header have the same general purpose bit
  // flags set.
  if (lfh->gpb_flags != cdr->gpb_flags) {
    ALOGW("Zip: gpb flag mismatch. expected {%04" PRIx16 "}, was {%04" PRIx16 "}",
          cdr->gpb_flags, lfh->gpb_flags);
    return kInconsistentInformation;