1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Fix security vulnerability described in bugtraq id 5808 and bump PORTREVISION.

Obtained from:	Debian
This commit is contained in:
Maxim Sobolev 2002-10-18 09:43:46 +00:00
parent bd8fa13576
commit 85c0c0cc45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68253
4 changed files with 51 additions and 8 deletions

View File

@ -8,17 +8,20 @@
PORTNAME= gv
PORTVERSION= 3.5.8
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/ \
${MASTER_SITE_TEX_CTAN}
MASTER_SITE_SUBDIR= support/ghostscript/gnu/gv/unix
PATCHFILES= gv_3.5.8-17.1.diff.gz
PATCH_SITES= http://security.debian.org/pool/updates/main/g/gv/
PATCH_DIST_STRIP= -p1
MAINTAINER= ports@freebsd.org
LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
FORBIDDEN= "Security vulnerability, see bugtraq id 5808"
USE_IMAKE= yes
MAN1= gv.1

View File

@ -1 +1,2 @@
MD5 (gv-3.5.8.tar.gz) = 8f2f0bd97395d6cea52926ddee736da8
MD5 (gv_3.5.8-17.1.diff.gz) = 2e9e7149b69bf36a80632c8b695b6495

View File

@ -1,13 +1,16 @@
--- config.Unix.orig Sat Jun 7 07:00:00 1997
+++ config.Unix Wed Feb 21 06:47:59 2001
$FreeBSD$
--- config.Unix.orig Fri Oct 18 11:54:17 2002
+++ config.Unix Fri Oct 18 11:55:45 2002
@@ -32,10 +32,10 @@
XCOMM --------------------------------------------------------------------
XCOMM Destination directories.
XCOMM --------------------------------------------------------------------
- GV_BINDIR = /usr/local/bin/
- GV_DOCDIR = /usr/local/doc/gv/
- GV_LIBDIR = /usr/local/lib/gv/
- GV_MANDIR = /usr/local/man/man1/
- GV_BINDIR = /usr/X11R6/bin/
- GV_DOCDIR = /usr/share/doc/gv/
- GV_LIBDIR = /usr/X11R6/lib/X11/gv/
- GV_MANDIR = /usr/X11R6/man/man1/
+ GV_BINDIR = $(BINDIR)
+ GV_DOCDIR = $(PREFIX)/share/doc/gv/
+ GV_LIBDIR = $(LIBDIR)/gv/

View File

@ -0,0 +1,36 @@
$FreeBSD$
--- source/secscanf.c 2002/10/18 09:04:10 1.1
+++ source/secscanf.c 2002/10/18 09:12:07
@@ -45,6 +45,21 @@
static int process_number(union scan_value *vp, const char **sp, char fmt);
static int process_char_class(const char **, const char **, int);
+#if __FreeBSD__
+static char *
+strndup(const char *src, size_t size)
+{
+ char *dst;
+
+ dst = malloc(size + 1);
+ if (dst == NULL)
+ return (NULL);
+ dst[size] = '\0';
+ strncpy(dst, src, size);
+ return (dst);
+}
+#endif
+
static inline int
set_conv_type(int *type, int new_type)
{
@@ -347,7 +362,7 @@
case 'g':
case 'e':
case 'E':
- vp->v_double = strtold(s, (char **) sp);
+ vp->v_double = strtod(s, (char **) sp);
break;
default:
return 0;