diff options
author | sl1pkn07 | 2015-11-03 16:30:48 +0100 |
---|---|---|
committer | sl1pkn07 | 2015-11-03 16:33:42 +0100 |
commit | d1e584e41563a5ac0949fa2d3333603ea73b252b (patch) | |
tree | ff90d4ee6c94fb1fc34ffa856c87cd27089c63a4 /crc32.patch | |
parent | 16303db219bcd331538bb31b4101004a8e75e3b2 (diff) | |
download | aur-d1e584e41563a5ac0949fa2d3333603ea73b252b.tar.gz |
Fix FS#46955 and update patchset
Diffstat (limited to 'crc32.patch')
-rw-r--r-- | crc32.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/crc32.patch b/crc32.patch deleted file mode 100644 index 43b29d78332b..000000000000 --- a/crc32.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- unzip60/extract.c 2010-04-03 14:41:55 -0500 -+++ unzip60/extract.c 2014-12-03 15:33:35 -0600 -@@ -1,5 +1,5 @@ - /* -- Copyright (c) 1990-2009 Info-ZIP. All rights reserved. -+ Copyright (c) 1990-2014 Info-ZIP. All rights reserved. - - See the accompanying file LICENSE, version 2009-Jan-02 or later - (the contents of which are also included in unzip.h) for terms of use. -@@ -298,6 +298,8 @@ - #ifndef SFX - static ZCONST char Far InconsistEFlength[] = "bad extra-field entry:\n \ - EF block length (%u bytes) exceeds remaining EF data (%u bytes)\n"; -+ static ZCONST char Far TooSmallEFlength[] = "bad extra-field entry:\n \ -+ EF block length (%u bytes) invalid (< %d)\n"; - static ZCONST char Far InvalidComprDataEAs[] = - " invalid compressed data for EAs\n"; - # if (defined(WIN32) && defined(NTSD_EAS)) -@@ -2023,7 +2025,8 @@ - ebID = makeword(ef); - ebLen = (unsigned)makeword(ef+EB_LEN); - -- if (ebLen > (ef_len - EB_HEADSIZE)) { -+ if (ebLen > (ef_len - EB_HEADSIZE)) -+ { - /* Discovered some extra field inconsistency! */ - if (uO.qflag) - Info(slide, 1, ((char *)slide, "%-22s ", -@@ -2032,6 +2035,16 @@ - ebLen, (ef_len - EB_HEADSIZE))); - return PK_ERR; - } -+ else if (ebLen < EB_HEADSIZE) -+ { -+ /* Extra block length smaller than header length. */ -+ if (uO.qflag) -+ Info(slide, 1, ((char *)slide, "%-22s ", -+ FnFilter1(G.filename))); -+ Info(slide, 1, ((char *)slide, LoadFarString(TooSmallEFlength), -+ ebLen, EB_HEADSIZE)); -+ return PK_ERR; -+ } - - switch (ebID) { - case EF_OS2: |