Add a buffer overflow fix
Submitted by: kris Obtained from: OpenBSD
This commit is contained in:
parent
b589f8de5d
commit
512dfab14f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46751
@ -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%/ \
|
||||
|
11
x11/rxvt-unicode/files/patch-ad
Normal file
11
x11/rxvt-unicode/files/patch-ad
Normal file
@ -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));
|
||||
}
|
@ -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%/ \
|
||||
|
11
x11/rxvt/files/patch-ad
Normal file
11
x11/rxvt/files/patch-ad
Normal file
@ -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));
|
||||
}
|
Loading…
Reference in New Issue
Block a user