summaryrefslogtreecommitdiff
path: root/archivers/rpm4/files/patch-lib_cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/rpm4/files/patch-lib_cpio.c')
-rw-r--r--archivers/rpm4/files/patch-lib_cpio.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/archivers/rpm4/files/patch-lib_cpio.c b/archivers/rpm4/files/patch-lib_cpio.c
deleted file mode 100644
index 692e5657a6ae..000000000000
--- a/archivers/rpm4/files/patch-lib_cpio.c
+++ /dev/null
@@ -1,15 +0,0 @@
-Fix for CVE-2014-8118 as found at
-https://bugzilla.redhat.com/show_bug.cgi?id=1168715
-
---- lib/cpio.c.orig 2014-06-30 08:47:13 UTC
-+++ lib/cpio.c
-@@ -399,6 +399,9 @@ int rpmcpioHeaderRead(rpmcpio_t cpio, ch
-
- GET_NUM_FIELD(hdr.filesize, fsize);
- GET_NUM_FIELD(hdr.namesize, nameSize);
-+ if (nameSize <= 0 || nameSize > 4096) {
-+ return RPMERR_BAD_HEADER;
-+ }
-
- char name[nameSize + 1];
- read = Fread(name, nameSize, 1, cpio->fd);