rpm/headerchk2.diff

13 lines
355 B
Diff
Raw Normal View History

--- lib/header.c.orig 2012-04-03 13:29:24.000000000 +0000
+++ lib/header.c 2012-06-01 14:22:12.000000000 +0000
@@ -900,7 +900,8 @@ Header headerImport(void * blob, unsigne
rdlen += REGION_TAG_COUNT;
- if (rdlen != dl)
+ /* should be equality test, but can be off if entries are not perfectly aligned */
+ if (rdlen > dl)
goto errxit;
}