diff options
author | dillo <dillo> | 2003-07-13 20:49:29 +0000 |
---|---|---|
committer | dillo <dillo> | 2003-07-13 20:49:29 +0000 |
commit | 2578763406de830b27cb7abb69c0b582102e4e74 (patch) | |
tree | 5d68e7b71ba4e378bd13ef0460d447182d6fb87c /devel/physfs/patches | |
parent | 523600e77ca94b6e828552a249a16d82e6055719 (diff) | |
download | pkgsrc-2578763406de830b27cb7abb69c0b582102e4e74.tar.gz |
fix segfault caused by running off the zip directory
Diffstat (limited to 'devel/physfs/patches')
-rw-r--r-- | devel/physfs/patches/patch-ab | 13 |
1 files changed, 13 insertions, 0 deletions
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; |