]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-CVE-2014-8118.patch
- enable extension-based-compression-detection in prep (rpm is misdetecting plain...
[packages/rpm.git] / rpm-CVE-2014-8118.patch
CommitLineData
8dc5e023
JR
1--- rpm-5.4.15/rpmio/cpio.c.orig 2012-04-16 05:21:22.000000000 +0200
2+++ rpm-5.4.15/rpmio/cpio.c 2015-01-25 15:50:23.017311712 +0100
3@@ -136,7 +136,7 @@
4 /*@=shiftimplementation@*/
5
6 GET_NUM_FIELD(hdr->namesize, nb);
7- if (nb >= iosm->wrsize)
8+ if (nb <= 0 || nb >= iosm->wrsize)
9 return IOSMERR_BAD_HEADER;
10
11 /* Read file name. */
This page took 0.025693 seconds and 4 git commands to generate.