Created
January 11, 2020 17:49
-
-
Save DuratarskeyK/991b17af726a8ea486fd65209e0932f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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