Skip to content

Instantly share code, notes, and snippets.

@DuratarskeyK
Created January 11, 2020 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuratarskeyK/991b17af726a8ea486fd65209e0932f4 to your computer and use it in GitHub Desktop.
Save DuratarskeyK/991b17af726a8ea486fd65209e0932f4 to your computer and use it in GitHub Desktop.
diff --git a/rpmdb/header.c b/rpmdb/header.c
index b2ef85d..5c46a18 100644
--- a/rpmdb/header.c
+++ b/rpmdb/header.c
@@ -577,6 +577,9 @@ assert(ie.info.offset >= 0); /* XXX insurance */
/* XXX (dataEnd - t) +/- REGION_TAG_COUNT forces dataLength() */
ie.length = dataLength(ie.info.type, &p, ie.info.count, 1, &pend);
}
+ if (ie.info.tag == RPMTAG_SUMMARY && ie.info.type == RPM_BIN_TYPE && ie.info.count == 16) {
+ ie.length = 16;
+ }
if (ie.length == 0 || hdrchkData(ie.length))
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment