summaryrefslogtreecommitdiff
path: root/archivers/unarj/files/patch-CVE-2004-0947
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unarj/files/patch-CVE-2004-0947')
-rw-r--r--archivers/unarj/files/patch-CVE-2004-094712
1 files changed, 7 insertions, 5 deletions
diff --git a/archivers/unarj/files/patch-CVE-2004-0947 b/archivers/unarj/files/patch-CVE-2004-0947
index b66db317b198..317d595de984 100644
--- a/archivers/unarj/files/patch-CVE-2004-0947
+++ b/archivers/unarj/files/patch-CVE-2004-0947
@@ -1,6 +1,8 @@
- Fix buffer overflow problem in filename handling (CAN-2004-0947)
-Index: unarj.c
-@@ -217,7 +217,7 @@ static uchar arj_flags;
+
+--- unarj.c.orig 2002-06-05 08:28:06 UTC
++++ unarj.c
+@@ -213,7 +213,7 @@ static uchar arj_flags;
static short method;
static uint file_mode;
static ulong time_stamp;
@@ -9,7 +11,7 @@ Index: unarj.c
static ushort host_data;
static uchar *get_ptr;
static UCRC file_crc;
-@@ -608,6 +608,7 @@ char *name;
+@@ -604,6 +604,7 @@ char *name;
error(M_BADHEADR, "");
crc = CRC_MASK;
@@ -17,7 +19,7 @@ Index: unarj.c
fread_crc(header, (int) headersize, fd);
header_crc = fget_crc(fd);
if ((crc ^ CRC_MASK) != header_crc)
-@@ -632,9 +633,13 @@ char *name;
+@@ -628,9 +629,13 @@ char *name;
if (origsize < 0 || compsize < 0)
error(M_HEADRCRC, "");
@@ -31,7 +33,7 @@ Index: unarj.c
if (host_os != OS)
strparity((uchar *)filename);
if ((arj_flags & PATHSYM_FLAG) != 0)
-@@ -733,11 +738,11 @@ extract()
+@@ -727,11 +732,11 @@ extract()
no_output = 0;
if (command == 'E')