openbsd-ports/devel/nasm/patches/patch-preproc_c
robert bd322ac906 SECURITY:
Fix two stack based buffer overflows; bump PKGNAME
http://www.vuxml.org/openbsd/63f4c28a-c85c-11d9-a130-00065bd5b0b6.html

ok mbalmer@
2005-05-19 13:04:17 +00:00

13 lines
394 B
Plaintext

$OpenBSD: patch-preproc_c,v 1.1 2005/05/19 13:04:17 robert Exp $
--- preproc.c.orig Mon Sep 8 00:46:26 2003
+++ preproc.c Thu May 19 14:52:19 2005
@@ -4067,7 +4067,7 @@ error(int severity, const char *fmt, ...
return;
va_start(arg, fmt);
- vsprintf(buff, fmt, arg);
+ vsnprintf(buff, sizeof(buff), fmt, arg);
va_end(arg);
if (istk && istk->mstk && istk->mstk->name)