aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2003-06-27 11:36:50 +0800
committerkris <kris@FreeBSD.org>2003-06-27 11:36:50 +0800
commitb97c981ab9e6ef90a1177f6279bbe398628b830c (patch)
tree092f579ae386b6fca0063cb9e0fd1449cbaea31c
parent4c39b52efb76f66e755e66ea639e5c5aa55f8973 (diff)
downloadfreebsd-ports-gnome-b97c981ab9e6ef90a1177f6279bbe398628b830c.tar.gz
freebsd-ports-gnome-b97c981ab9e6ef90a1177f6279bbe398628b830c.tar.zst
freebsd-ports-gnome-b97c981ab9e6ef90a1177f6279bbe398628b830c.zip
Fix fgets buffer overflow
Obtained from: OpenBSD
-rw-r--r--cad/spice/Makefile2
-rw-r--r--cad/spice/files/patch-src_lib_fte_misccoms_c12
2 files changed, 13 insertions, 1 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile
index 5c2188b48cc3..2410ef6df787 100644
--- a/cad/spice/Makefile
+++ b/cad/spice/Makefile
@@ -7,7 +7,7 @@
PORTNAME= spice
PORTVERSION= 3f5.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/
DISTNAME= sp3f4.kit
diff --git a/cad/spice/files/patch-src_lib_fte_misccoms_c b/cad/spice/files/patch-src_lib_fte_misccoms_c
new file mode 100644
index 000000000000..7a9b3aaa5fdd
--- /dev/null
+++ b/cad/spice/files/patch-src_lib_fte_misccoms_c
@@ -0,0 +1,12 @@
+$OpenBSD: patch-src_lib_fte_misccoms_c,v 1.1 2003/04/14 10:28:03 avsm Exp $
+--- src/lib/fte/misccoms.c.orig Mon Apr 14 11:19:24 2003
++++ src/lib/fte/misccoms.c Mon Apr 14 11:21:00 2003
+@@ -286,7 +286,7 @@ com_quit(wl)
+ fprintf(cp_out,
+ "\nAre you sure you want to quit (yes)? ");
+ (void) fflush(cp_out);
+- if (!fgets(buf, BSIZE_SP, stdin)) {
++ if (!fgets(buf, sizeof buf, stdin)) {
+ clearerr(stdin);
+ *buf = 'y';
+ }