treewide: Run refresh on all packages
[feed/packages.git] / utils / unzip / patches / 011-CVE-2018-1000035-overflow-password-protect.patch
index e1fdcf588c5e45ddd8cac7482e6ae8c5e7c12d7a..0c56ace8a9d1d4d359e8e7ff13053742c670b3d1 100644 (file)
@@ -4,20 +4,20 @@
  /*
 -  Copyright (c) 1990-2009 Info-ZIP.  All rights reserved.
 +  Copyright (c) 1990-2017 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.
-@@ -1582,6 +1582,8 @@
+@@ -1582,6 +1582,8 @@ int UZ_EXP UzpPassword (pG, rcnt, pwbuf,
      int r = IZ_PW_ENTERED;
      char *m;
      char *prompt;
 +    char *ep;
 +    char *zp;
-
  #ifndef REENTRANT
      /* tell picky compilers to shut up about "unused variable" warnings */
-@@ -1590,9 +1592,12 @@
-
+@@ -1590,9 +1592,12 @@ int UZ_EXP UzpPassword (pG, rcnt, pwbuf,
      if (*rcnt == 0) {           /* First call for current entry */
          *rcnt = 2;
 -        if ((prompt = (char *)malloc(2*FILNAMSIZ + 15)) != (char *)NULL) {