summaryrefslogtreecommitdiff
path: root/net/gnapster
diff options
context:
space:
mode:
authorwiz <wiz>2001-11-27 16:20:05 +0000
committerwiz <wiz>2001-11-27 16:20:05 +0000
commit469ee371d4cccf7d7df2d8658511d3bf0651f84c (patch)
tree83fad881b59441c9ade02900e185b933218a2db1 /net/gnapster
parentbbd06748d14d224a46ccae6158476223bcbff00a (diff)
downloadpkgsrc-469ee371d4cccf7d7df2d8658511d3bf0651f84c.tar.gz
Check return value of strrchr before dereferencing it.
Problem reported (with fix) in pkg/14745 by John Heasley.
Diffstat (limited to 'net/gnapster')
-rw-r--r--net/gnapster/distinfo3
-rw-r--r--net/gnapster/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
diff --git a/net/gnapster/distinfo b/net/gnapster/distinfo
index c8e4db37fd6..2ce9d8370e5 100644
--- a/net/gnapster/distinfo
+++ b/net/gnapster/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2001/07/22 16:42:45 rh Exp $
+$NetBSD: distinfo,v 1.4 2001/11/27 16:20:05 wiz Exp $
SHA1 (gnapster-1.5.0.tar.gz) = 0e88422c9ed9f1882f7ef735357ad616a8d636e7
Size (gnapster-1.5.0.tar.gz) = 513813 bytes
SHA1 (patch-aa) = b1d8bea52d7007d6d46e8a8792ea392da98b8693
+SHA1 (patch-ab) = 2cf48c1860a663df6bb2283b76aa88e649f6479d
diff --git a/net/gnapster/patches/patch-ab b/net/gnapster/patches/patch-ab
new file mode 100644
index 00000000000..6f35c8f0552
--- /dev/null
+++ b/net/gnapster/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.6 2001/11/27 16:20:05 wiz Exp $
+
+--- src/upload.c.orig Mon Jun 4 11:06:17 2001
++++ src/upload.c
+@@ -262,7 +262,7 @@
+ return;
+
+ ptr = strrchr(s, '/');
+- if (!ptr[1])
++ if (ptr && !ptr[1])
+ *ptr = 0;
+ }
+