diff options
author | minskim <minskim@pkgsrc.org> | 2009-07-26 10:29:08 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2009-07-26 10:29:08 +0000 |
commit | f927d36f9662856041129c8d64eebb5069f41d1e (patch) | |
tree | f8c760f162667b1e7dda0eb5da500f5e3bfa87c1 /archivers/zziplib/patches | |
parent | 43e8876e0c22ca9ca6b5bf7ad85290494e8fa517 (diff) | |
download | pkgsrc-f927d36f9662856041129c8d64eebb5069f41d1e.tar.gz |
Update zziplib to 0.13.56.
Major change since 0.10.x:
There were some problematic zip files out there that can trigger
segfaults in 0.10.x. Later zzip file decoders have extra checks and
helper routines for that.
Diffstat (limited to 'archivers/zziplib/patches')
-rw-r--r-- | archivers/zziplib/patches/patch-aa | 13 | ||||
-rw-r--r-- | archivers/zziplib/patches/patch-ab | 15 | ||||
-rw-r--r-- | archivers/zziplib/patches/patch-ac | 12 |
3 files changed, 0 insertions, 40 deletions
diff --git a/archivers/zziplib/patches/patch-aa b/archivers/zziplib/patches/patch-aa deleted file mode 100644 index 248ae135681..00000000000 --- a/archivers/zziplib/patches/patch-aa +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aa,v 1.1 2006/08/11 12:50:40 taca Exp $ - ---- bins/zziptest.c.orig 2002-12-18 23:06:29.000000000 +0900 -+++ bins/zziptest.c -@@ -73,7 +73,7 @@ int main(int argc, char ** argv) - printf("filename: %s\n\n", hdr->d_name); - - if (hdr->d_reclen == 0) break; -- (char *)hdr += hdr->d_reclen; -+ hdr = (struct zzip_dir_hdr *)((char *)hdr + hdr->d_reclen); - sleep(1); - } - } diff --git a/archivers/zziplib/patches/patch-ab b/archivers/zziplib/patches/patch-ab deleted file mode 100644 index c9628bf3bfa..00000000000 --- a/archivers/zziplib/patches/patch-ab +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-ab,v 1.1 2007/05/06 00:28:57 taca Exp $ - ---- zzip/file.c.orig 2003-07-29 04:52:49.000000000 +0900 -+++ zzip/file.c -@@ -708,7 +708,9 @@ zzip_open_shared_io (ZZIP_FILE* stream, - /* see if we can open a file that is a zip file */ - { char basename[PATH_MAX]; - char* p; -- strcpy (basename, filename); -+ int filename_len = strlen (filename); -+ if (filename_len >= PATH_MAX) { errno = ENAMETOOLONG; return 0; } -+ memcpy (basename, filename, filename_len+1); - - /* see if we can share the same zip directory */ - if (stream && stream->dir && stream->dir->realname) diff --git a/archivers/zziplib/patches/patch-ac b/archivers/zziplib/patches/patch-ac deleted file mode 100644 index c327b35c1b3..00000000000 --- a/archivers/zziplib/patches/patch-ac +++ /dev/null @@ -1,12 +0,0 @@ -$NetBSD: patch-ac,v 1.1 2007/09/02 20:32:56 jdolecek Exp $ - ---- zzip/zzip.h.orig 2007-09-02 22:26:57.000000000 +0200 -+++ zzip/zzip.h -@@ -22,6 +22,7 @@ - #include <zzip/conf.h> - - #include <fcntl.h> -+#include <sys/types.h> - #include <stddef.h> /* size_t and friends */ - /* msvc6 has neither ssize_t (we assume "int") nor off_t (assume "long") */ - |