summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2003-07-13 20:49:29 +0000
committerdillo <dillo@pkgsrc.org>2003-07-13 20:49:29 +0000
commit7afd851de39276dd8f0992e674e7c9c3d8adf4e8 (patch)
tree5d68e7b71ba4e378bd13ef0460d447182d6fb87c
parent1997cb9bd4eca14637e53a884e6ebc8107a71cb4 (diff)
downloadpkgsrc-7afd851de39276dd8f0992e674e7c9c3d8adf4e8.tar.gz
fix segfault caused by running off the zip directory
-rw-r--r--devel/physfs/distinfo3
-rw-r--r--devel/physfs/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/physfs/distinfo b/devel/physfs/distinfo
index e579c5a4c64..0ee9c413097 100644
--- a/devel/physfs/distinfo
+++ b/devel/physfs/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/07/13 20:00:29 dillo Exp $
+$NetBSD: distinfo,v 1.2 2003/07/13 20:49:29 dillo Exp $
SHA1 (physfs-0.1.8.tar.gz) = 0fc4ed9d72df84279718b57d54c4b8f4f76286a2
Size (physfs-0.1.8.tar.gz) = 462702 bytes
SHA1 (patch-aa) = 2a56434b2979206fc3e8c4a5a3ab1eeaed715bda
+SHA1 (patch-ab) = daba84c3d776ff08f8b168370d9079eff3546634
diff --git a/devel/physfs/patches/patch-ab b/devel/physfs/patches/patch-ab
new file mode 100644
index 00000000000..cf8143bda49
--- /dev/null
+++ b/devel/physfs/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2003/07/13 20:49:30 dillo Exp $
+
+--- archivers/zip.c.orig Fri Nov 22 07:03:08 2002
++++ archivers/zip.c
+@@ -1166,7 +1166,7 @@ static PHYSFS_sint32 zip_find_start_of_d
+ int stop_on_first_find)
+ {
+ PHYSFS_sint32 lo = 0;
+- PHYSFS_sint32 hi = (PHYSFS_sint32) info->entryCount;
++ PHYSFS_sint32 hi = (PHYSFS_sint32) (info->entryCount - 1);
+ PHYSFS_sint32 middle;
+ PHYSFS_uint32 dlen = strlen(path);
+ PHYSFS_sint32 retval = -1;