From: sms Subject: Fix CVE-2014-8139: CRC32 verification heap-based overflow Bug-Debian: http://bugs.debian.org/773722 --- a/extract.c +++ b/extract.c @@ -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: ue='author'>author
path: root/gnu/packages/profiling.scm
AgeCommit message (Expand)Author
2019-05-08gnu: opari2: Use HTTPS home page....Tobias Geerinckx-Rice
2019-05-08gnu: opari2: Update to 2.0.4....Tobias Geerinckx-Rice
2018-08-11gnu: otf2: Edit description....Tobias Geerinckx-Rice
2018-08-11gnu: opari2: Update to 2.0.3....Tobias Geerinckx-Rice
2018-08-11gnu: opari2: Remove redundant code....Tobias Geerinckx-Rice
2018-08-10gnu: otf2: Update to 2.1.1....Tobias Geerinckx-Rice
2018-03-16gnu: All snippets report errors using exceptions, else return #t....Mark H Weaver
2018-03-05gnu: papi: Use HTTPS home page....Tobias Geerinckx-Rice
2018-03-05gnu: papi: Fix documentation location....Tobias Geerinckx-Rice
2018-03-04gnu: papi: Update phase style....Tobias Geerinckx-Rice
2017-10-03gnu: Add scorep-openmpi....Dave Love
2017-10-03gnu: Add cube....Dave Love
2017-10-03gnu: Add opari2....Dave Love
2017-10-03gnu: Add otf2....Dave Love
2017-10-03gnu: Add papi....Dave Love