guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: zziplip: Remove upstreamed patch.


From: guix-commits
Subject: 01/03: gnu: zziplip: Remove upstreamed patch.
Date: Sat, 16 May 2020 16:19:34 -0400 (EDT)

nckx pushed a commit to branch core-updates
in repository guix.

commit 9be04d64aa9ef3363b9478235d459f41d2c571dd
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Sat May 16 22:18:48 2020 +0200

    gnu: zziplip: Remove upstreamed patch.
    
    This follows up on 008ad648902ecf6aca7811da795c2279b09474a3,
    which was absolute bork.
    
    * gnu/packages/compression.scm (zziplib)[source]: Actually remove patch.
    * gnu/packages/patches/zziplib-CVE-2018-16548.patch: Actually delete file.
    * gnu/local.mk (dist_patch_DATA): Actually remove it.
---
 gnu/local.mk                                      |  3 +-
 gnu/packages/compression.scm                      |  1 -
 gnu/packages/patches/zziplib-CVE-2018-16548.patch | 49 -----------------------
 3 files changed, 1 insertion(+), 52 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index ab2bac9..c6143dd 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1611,8 +1611,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/xsane-fix-pdf-floats.patch              \
   %D%/packages/patches/xsane-fix-snprintf-buffer-length.patch  \
   %D%/packages/patches/xsane-support-ipv6.patch                        \
-  %D%/packages/patches/xsane-tighten-default-umask.patch       \
-  %D%/packages/patches/zziplib-CVE-2018-16548.patch
+  %D%/packages/patches/xsane-tighten-default-umask.patch
 
 MISC_DISTRO_FILES =                            \
   %D%/packages/ld-wrapper.in
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index e5488ee..4507c57 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1576,7 +1576,6 @@ recreates the stored directory structure by default.")
               (uri (git-reference (url home-page)
                                   (commit (string-append "v" version))))
               (file-name (git-file-name name version))
-;              (patches (search-patches "zziplib-CVE-2018-16548.patch"))
               (sha256
                (base32
                 "109vznm9cxkqbj5r83qdgcdfk0j4kbg96dqr0q085nhwpgkw7viz"))))
diff --git a/gnu/packages/patches/zziplib-CVE-2018-16548.patch 
b/gnu/packages/patches/zziplib-CVE-2018-16548.patch
deleted file mode 100644
index a17c6a9..0000000
--- a/gnu/packages/patches/zziplib-CVE-2018-16548.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-The following 3 patches applied to 0.13.69 in this order, combined:
-https://github.com/gdraheim/zziplib/commit/9411bde3e4a70a81ff3ffd256b71927b2d90dcbb.patch
-https://github.com/gdraheim/zziplib/commit/d2e5d5c53212e54a97ad64b793a4389193fec687.patch
-https://github.com/gdraheim/zziplib/commit/0e1dadb05c1473b9df2d7b8f298dab801778ef99.patch
-
-diff --git a/test/test.zip b/test/test.zip
-index 2c992ea..952d475 100644
-Binary files a/test/test.zip and b/test/test.zip differ
-diff --git a/zzip/zip.c b/zzip/zip.c
-index 14e2e06..f97a40a 100644
---- a/zzip/zip.c
-+++ b/zzip/zip.c
-@@ -472,9 +472,15 @@ __zzip_parse_root_directory(int fd,
-         } else
-         {
-             if (io->fd.seeks(fd, zz_rootseek + zz_offset, SEEK_SET) < 0)
-+          {
-+              free(hdr0);
-                 return ZZIP_DIR_SEEK;
-+          }
-             if (io->fd.read(fd, &dirent, sizeof(dirent)) < __sizeof(dirent))
-+          {
-+              free(hdr0);
-                 return ZZIP_DIR_READ;
-+          }
-             d = &dirent;
-         }
- 
-@@ -574,11 +580,18 @@ __zzip_parse_root_directory(int fd,
- 
-         if (hdr_return)
-             *hdr_return = hdr0;
-+      else
-+      {
-+          /* If it is not assigned to *hdr_return, it will never be free()'d 
*/
-+          free(hdr0);
-+      }
-     }                           /* else zero (sane) entries */
-+    else
-+        free(hdr0);
- #  ifndef ZZIP_ALLOW_MODULO_ENTRIES
--    return (entries != zz_entries ? ZZIP_CORRUPTED : 0);
-+    return (entries != zz_entries) ? ZZIP_CORRUPTED : 0;
- #  else
--    return ((entries & (unsigned)0xFFFF) != zz_entries ? ZZIP_CORRUPTED : 0);
-+    return ((entries & (unsigned)0xFFFF) != zz_entries) ? ZZIP_CORRUPTED : 0;
- #  endif
- }
- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]