SOURCES: yasm-segv.patch (NEW) - fix SEGV caught on ac-sparc

qboosh qboosh at pld-linux.org
Tue Oct 25 22:43:26 CEST 2005


Author: qboosh                       Date: Tue Oct 25 20:43:26 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix SEGV caught on ac-sparc

---- Files affected:
SOURCES:
   yasm-segv.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/yasm-segv.patch
diff -u /dev/null SOURCES/yasm-segv.patch:1.1
--- /dev/null	Tue Oct 25 22:43:26 2005
+++ SOURCES/yasm-segv.patch	Tue Oct 25 22:43:21 2005
@@ -0,0 +1,13 @@
+--- yasm-0.4.0/modules/preprocs/nasm/genmacro.c.orig	2004-10-31 03:55:54.000000000 +0000
++++ yasm-0.4.0/modules/preprocs/nasm/genmacro.c	2005-10-25 20:28:44.451477851 +0000
+@@ -102,8 +102,8 @@
+ 	    while (*strp == ' ' || *strp == '\t')
+ 		strp++;
+ 	    len = strlen(strp);
+-	    while (strp[len-1] == ' ' || strp[len-1] == '\t' ||
+-		   strp[len-1] == '\n') {
++	    while ((len > 0) && (strp[len-1] == ' ' || strp[len-1] == '\t' ||
++		   strp[len-1] == '\n')) {
+ 		strp[len-1] = '\0';
+ 		len--;
+ 	    }
================================================================



More information about the pld-cvs-commit mailing list