summaryrefslogtreecommitdiff
path: root/archivers/unace/files/patch-CVE-2015-2063
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/unace/files/patch-CVE-2015-2063')
-rw-r--r--archivers/unace/files/patch-CVE-2015-206318
1 files changed, 7 insertions, 11 deletions
diff --git a/archivers/unace/files/patch-CVE-2015-2063 b/archivers/unace/files/patch-CVE-2015-2063
index 72c0fb38e707..046844c6e261 100644
--- a/archivers/unace/files/patch-CVE-2015-2063
+++ b/archivers/unace/files/patch-CVE-2015-2063
@@ -10,13 +10,9 @@ Bug-Debian: https://bugs.debian.org/775003
Forwarded: no
Last-Update: 2015-02-24
----
- unace.c | 25 +++++++++++++++++++++++--
- 1 file changed, 23 insertions(+), 2 deletions(-)
-
---- unace.c
+--- unace.c.orig 1998-07-01 08:29:00 UTC
+++ unace.c
-@@ -113,6 +113,7 @@ INT read_header(INT print_err)
+@@ -111,6 +111,7 @@ INT read_header(INT print_err)
{
USHORT rd,
head_size,
@@ -24,7 +20,7 @@ Last-Update: 2015-02-24
crc_ok;
LONG crc;
UCHAR *tp=readbuf;
-@@ -128,6 +129,9 @@ INT read_header(INT print_err)
+@@ -126,6 +127,9 @@ INT read_header(INT print_err)
#endif
// read size_headrdb bytes into
head_size = head.HEAD_SIZE; // header structure
@@ -34,7 +30,7 @@ Last-Update: 2015-02-24
rd = (head_size > size_headrdb) ? size_headrdb : head_size;
if (read(archan, readbuf, rd) < rd)
return 0;
-@@ -147,7 +151,12 @@ INT read_header(INT print_err)
+@@ -145,7 +149,12 @@ INT read_header(INT print_err)
head.HEAD_FLAGS=BUFP2WORD(tp);
if (head.HEAD_FLAGS & ACE_ADDSIZE)
@@ -47,7 +43,7 @@ Last-Update: 2015-02-24
else
skipsize = 0;
-@@ -158,6 +167,9 @@ INT read_header(INT print_err)
+@@ -156,6 +165,9 @@ INT read_header(INT print_err)
switch (head.HEAD_TYPE) // specific buffer to head conversion
{
case MAIN_BLK:
@@ -57,7 +53,7 @@ Last-Update: 2015-02-24
memcpy(mhead.ACESIGN, tp, acesign_len); tp+=acesign_len;
mhead.VER_MOD=*tp++;
mhead.VER_CR =*tp++;
-@@ -168,9 +180,15 @@ INT read_header(INT print_err)
+@@ -166,9 +178,15 @@ INT read_header(INT print_err)
mhead.RES2 =BUFP2WORD(tp);
mhead.RES =BUFP2LONG(tp);
mhead.AV_SIZE=*tp++;
@@ -74,7 +70,7 @@ Last-Update: 2015-02-24
fhead.PSIZE =BUFP2LONG(tp);
fhead.SIZE =BUFP2LONG(tp);
fhead.FTIME =BUFP2LONG(tp);
-@@ -181,7 +199,10 @@ INT read_header(INT print_err)
+@@ -179,7 +197,10 @@ INT read_header(INT print_err)
fhead.TECH.PARM =BUFP2WORD(tp);
fhead.RESERVED =BUFP2WORD(tp);
fhead.FNAME_SIZE=BUFP2WORD(tp);