[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/nasm/devel nasm-0.98.39-overfl.patch, NONE, 1.1 nasm.spec, 1.12, 1.13



Update of /cvs/dist/rpms/nasm/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv4546

Modified Files:
	nasm.spec 
Added Files:
	nasm-0.98.39-overfl.patch 
Log Message:

- fix yet another vsprintf buffer overflow (#152963)



nasm-0.98.39-overfl.patch:
 outieee.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE nasm-0.98.39-overfl.patch ---
--- nasm-0.98.39/output/outieee.c.overfl	2005-01-15 23:16:08.000000000 +0100
+++ nasm-0.98.39/output/outieee.c	2005-04-01 12:55:17.231530832 +0200
@@ -1120,7 +1120,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)


Index: nasm.spec
===================================================================
RCS file: /cvs/dist/rpms/nasm/devel/nasm.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- nasm.spec	31 Mar 2005 13:26:48 -0000	1.12
+++ nasm.spec	4 Apr 2005 14:01:57 -0000	1.13
@@ -1,8 +1,9 @@
 Summary: A portable x86 assembler which uses Intel-like syntax.
 Name: nasm
 Version: 0.98.39
-Release: 1
+Release: 2
 Patch0: nasm-0.98-boguself2.patch
+Patch1: nasm-0.98.39-overfl.patch
 License: LGPL
 Group: Development/Languages
 Source: http://prdownloads.sourceforge.net/nasm/nasm-%{version}.tar.bz2
@@ -37,6 +38,7 @@
 %prep
 %setup
 #%patch0 -p1 -b .boguself
+%patch1 -p1 -b .overfl
 
 %build
 %configure
@@ -88,6 +90,9 @@
 %{_bindir}/rdx
 
 %changelog
+* Fri Apr 01 2005 Jindrich Novy <jnovy redhat com> 0.98.39-2
+- fix yet another vsprintf buffer overflow (#152963)
+
 * Thu Mar 31 2005 Jindrich Novy <jnovy redhat com> 0.98.39-1
 - update to 0.98.39
 - add BuildRequires ghostscript, texinfo to doc subpackage (#110584)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]