summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-01-01 11:43:27 +0000
committerkristerw <kristerw@pkgsrc.org>2005-01-01 11:43:27 +0000
commit0ec433499a947defde64a8bed56dfdb1ccee5145 (patch)
treeae0c5e627c853d20c8c83dfb4ca3dae4a8fef7d9 /archivers
parent970c074b1be56c95a822b46b7ca7d0240dd66adf (diff)
downloadpkgsrc-0ec433499a947defde64a8bed56dfdb1ccee5145.tar.gz
Correct a buffer overflow, using a patch provided by Richard Rauch
in PR pkg/23954. Bump PKGREVISION.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/arc/Makefile3
-rw-r--r--archivers/arc/distinfo3
-rw-r--r--archivers/arc/patches/patch-ac33
3 files changed, 37 insertions, 2 deletions
diff --git a/archivers/arc/Makefile b/archivers/arc/Makefile
index 34fa400dbc0..13d18b95528 100644
--- a/archivers/arc/Makefile
+++ b/archivers/arc/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.19 2004/04/10 23:51:36 minskim Exp $
+# $NetBSD: Makefile,v 1.20 2005/01/01 11:43:27 kristerw Exp $
# FreeBSD Id: Makefile,v 1.7 1997/08/10 22:31:09 fenner Exp
#
DISTNAME= arc521e.pl8
PKGNAME= arc-5.21e
+PKGREVISION= 1
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/arcers/
EXTRACT_SUFX= .tar.Z
diff --git a/archivers/arc/distinfo b/archivers/arc/distinfo
index 2358210e9b0..eec051bc649 100644
--- a/archivers/arc/distinfo
+++ b/archivers/arc/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2004/04/10 23:31:27 minskim Exp $
+$NetBSD: distinfo,v 1.5 2005/01/01 11:43:27 kristerw Exp $
SHA1 (arc521e.pl8.tar.Z) = 34210f9aeaac39a15b34e6aa400b38127b6a2a20
Size (arc521e.pl8.tar.Z) = 100821 bytes
SHA1 (patch-aa) = 62324f346559b2997eba56698b1c0c1c29a328c3
SHA1 (patch-ab) = 431f3581ed6cfce2e760da9aa2f2b8b59fc4eb56
+SHA1 (patch-ac) = 64d87af431c6bc0ded0b26167782309a7bfadd8a
diff --git a/archivers/arc/patches/patch-ac b/archivers/arc/patches/patch-ac
new file mode 100644
index 00000000000..6ed600c2707
--- /dev/null
+++ b/archivers/arc/patches/patch-ac
@@ -0,0 +1,33 @@
+$NetBSD: patch-ac,v 1.1 2005/01/01 11:43:27 kristerw Exp $
+
+--- arcmisc.c.orig Wed Apr 15 00:59:12 1992
++++ arcmisc.c Sat Jan 1 12:36:08 2005
+@@ -5,6 +5,7 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <unistd.h>
+ #include "arc.h"
+
+ #include <string.h>
+@@ -233,16 +234,16 @@
+ char *dirname;
+
+ {
+- char *getwd();
++ size_t buf_size = 0;
+ #if GEMDOS
+ int drv;
+ char *buf;
+ #endif
+- if (dirname == NULL || strlen(dirname) == 0)
+- dirname = (char *) malloc(1024);
++ if (dirname == NULL || (buf_size = strlen(dirname)) == 0)
++ dirname = (char *) malloc(buf_size = 1024);
+
+ #if !GEMDOS
+- getwd(dirname);
++ getcwd(dirname, buf_size);
+ #else
+ buf = dirname;
+ *buf++ = (drv = Dgetdrv()) + 'A';