bd322ac906
Fix two stack based buffer overflows; bump PKGNAME http://www.vuxml.org/openbsd/63f4c28a-c85c-11d9-a130-00065bd5b0b6.html ok mbalmer@
13 lines
431 B
Plaintext
13 lines
431 B
Plaintext
$OpenBSD: patch-output_outieee_c,v 1.1 2005/05/19 13:04:17 robert Exp $
|
|
--- output/outieee.c.orig Thu Sep 12 04:23:54 2002
|
|
+++ output/outieee.c Thu May 19 14:52:19 2005
|
|
@@ -1096,7 +1096,7 @@ static void ieee_putascii(char *format,
|
|
va_list ap;
|
|
|
|
va_start(ap, format);
|
|
- vsprintf(buffer, format, ap);
|
|
+ vsnprintf(buffer, sizeof(buffer), format, ap);
|
|
l = strlen(buffer);
|
|
for (i=0; i < l; i++)
|
|
if ((buffer[i] & 0xff) > 31)
|