pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/arc Correct a buffer overflow, using a patch...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ce607bfb886a
branches: trunk
changeset: 486711:ce607bfb886a
user: kristerw <kristerw%pkgsrc.org@localhost>
date: Sat Jan 01 11:43:27 2005 +0000
description:
Correct a buffer overflow, using a patch provided by Richard Rauch
in PR pkg/23954.
Bump PKGREVISION.
diffstat:
archivers/arc/Makefile | 3 ++-
archivers/arc/distinfo | 3 ++-
archivers/arc/patches/patch-ac | 33 +++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 2 deletions(-)
diffs (64 lines):
diff -r 43baab2d0e54 -r ce607bfb886a archivers/arc/Makefile
--- a/archivers/arc/Makefile Sat Jan 01 10:39:35 2005 +0000
+++ b/archivers/arc/Makefile Sat Jan 01 11:43:27 2005 +0000
@@ -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 -r 43baab2d0e54 -r ce607bfb886a archivers/arc/distinfo
--- a/archivers/arc/distinfo Sat Jan 01 10:39:35 2005 +0000
+++ b/archivers/arc/distinfo Sat Jan 01 11:43:27 2005 +0000
@@ -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 -r 43baab2d0e54 -r ce607bfb886a archivers/arc/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/arc/patches/patch-ac Sat Jan 01 11:43:27 2005 +0000
@@ -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';
Home |
Main Index |
Thread Index |
Old Index