SECURITY:

Fix two stack based buffer overflows; bump PKGNAME
http://www.vuxml.org/openbsd/63f4c28a-c85c-11d9-a130-00065bd5b0b6.html

ok mbalmer@
This commit is contained in:
robert 2005-05-19 13:04:17 +00:00
parent 674a3c6ca2
commit bd322ac906
3 changed files with 26 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.19 2004/11/24 00:11:03 espie Exp $
# $OpenBSD: Makefile,v 1.20 2005/05/19 13:04:17 robert Exp $
COMMENT= "general-purpose multi-platform x86 assembler"
ONLY_FOR_ARCHS= i386
DISTNAME= nasm-0.98.38
PKGNAME= ${DISTNAME}p0
CATEGORIES= devel lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nasm/}

View File

@ -0,0 +1,12 @@
$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)

View File

@ -0,0 +1,12 @@
$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)