]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-CVE-2014-8118.patch
- staring playing with rpm.org
[packages/rpm.git] / rpm-CVE-2014-8118.patch
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.025573 seconds and 3 git commands to generate.