File headerchk2.diff of Package rpm.22276

--- ./lib/header.c.orig	2017-12-01 15:54:04.254399473 +0000
+++ ./lib/header.c	2017-12-01 15:55:36.389131237 +0000
@@ -929,7 +929,8 @@ rpmRC hdrblobImport(hdrblob blob, int fa
 
 	rdlen += REGION_TAG_COUNT;
 
-	if (rdlen != blob->dl)
+	/* should be equality test, but can be off if entries are not perfectly aligned */
+	if (rdlen > blob->dl)
 	    goto errxit;
     }
 
openSUSE Build Service is sponsored by