diff options
author | lioux <lioux@FreeBSD.org> | 2001-08-24 05:09:26 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-08-24 05:09:26 +0800 |
commit | ce08354ff3c37820a3aa9bc5689e723c86600635 (patch) | |
tree | b491c8c5053d6606152bbeb9f70acb90078a12be /x11 | |
parent | c19c42d09780ebbf6e243473f9f3186b862b91c0 (diff) | |
download | freebsd-ports-gnome-ce08354ff3c37820a3aa9bc5689e723c86600635.tar.gz freebsd-ports-gnome-ce08354ff3c37820a3aa9bc5689e723c86600635.tar.zst freebsd-ports-gnome-ce08354ff3c37820a3aa9bc5689e723c86600635.zip |
Add a buffer overflow fix
Submitted by: kris
Obtained from: OpenBSD
Diffstat (limited to 'x11')
-rw-r--r-- | x11/rxvt-unicode/Makefile | 1 | ||||
-rw-r--r-- | x11/rxvt-unicode/files/patch-ad | 11 | ||||
-rw-r--r-- | x11/rxvt/Makefile | 1 | ||||
-rw-r--r-- | x11/rxvt/files/patch-ad | 11 |
4 files changed, 24 insertions, 0 deletions
diff --git a/x11/rxvt-unicode/Makefile b/x11/rxvt-unicode/Makefile index ca3ef61780d0..7c70f683986c 100644 --- a/x11/rxvt-unicode/Makefile +++ b/x11/rxvt-unicode/Makefile @@ -10,6 +10,7 @@ PORTNAME= rxvt PORTVERSION= 2.6.3 +PORTREVISION= 1 CATEGORIES+= x11 MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \ ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \ diff --git a/x11/rxvt-unicode/files/patch-ad b/x11/rxvt-unicode/files/patch-ad new file mode 100644 index 000000000000..6f3e7e9a7bcb --- /dev/null +++ b/x11/rxvt-unicode/files/patch-ad @@ -0,0 +1,11 @@ +--- src/command.c.orig Thu Apr 5 03:52:39 2001 ++++ src/command.c Fri Jun 22 13:36:57 2001 +@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm + unsigned char buf[256]; + + va_start(arg_ptr, fmt); +- vsprintf(buf, fmt, arg_ptr); ++ vsnprintf(buf, sizeof(buf), fmt, arg_ptr); + va_end(arg_ptr); + rxvt_tt_write(r, buf, STRLEN(buf)); + } diff --git a/x11/rxvt/Makefile b/x11/rxvt/Makefile index ca3ef61780d0..7c70f683986c 100644 --- a/x11/rxvt/Makefile +++ b/x11/rxvt/Makefile @@ -10,6 +10,7 @@ PORTNAME= rxvt PORTVERSION= 2.6.3 +PORTREVISION= 1 CATEGORIES+= x11 MASTER_SITES= ftp://ftp.rxvt.org/pub/rxvt/%SUBDIR%/ \ ftp://mason.primenet.com.au/pub/rxvt/%SUBDIR%/ \ diff --git a/x11/rxvt/files/patch-ad b/x11/rxvt/files/patch-ad new file mode 100644 index 000000000000..6f3e7e9a7bcb --- /dev/null +++ b/x11/rxvt/files/patch-ad @@ -0,0 +1,11 @@ +--- src/command.c.orig Thu Apr 5 03:52:39 2001 ++++ src/command.c Fri Jun 22 13:36:57 2001 +@@ -2796,7 +2796,7 @@ rxvt_tt_printf(rxvt_t *r, const char *fm + unsigned char buf[256]; + + va_start(arg_ptr, fmt); +- vsprintf(buf, fmt, arg_ptr); ++ vsnprintf(buf, sizeof(buf), fmt, arg_ptr); + va_end(arg_ptr); + rxvt_tt_write(r, buf, STRLEN(buf)); + } |