diff options
author | kris <kris@FreeBSD.org> | 2003-06-27 11:36:50 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-06-27 11:36:50 +0800 |
commit | b97c981ab9e6ef90a1177f6279bbe398628b830c (patch) | |
tree | 092f579ae386b6fca0063cb9e0fd1449cbaea31c | |
parent | 4c39b52efb76f66e755e66ea639e5c5aa55f8973 (diff) | |
download | freebsd-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/Makefile | 2 | ||||
-rw-r--r-- | cad/spice/files/patch-src_lib_fte_misccoms_c | 12 |
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'; + } |