[Debburn-changes] r832 - in cdrkit/trunk: . genisoimage

Steve McIntyre 93sam at alioth.debian.org
Tue Aug 11 13:27:55 UTC 2009


Author: 93sam
Date: 2009-08-11 13:27:55 +0000 (Tue, 11 Aug 2009)
New Revision: 832

Modified:
   cdrkit/trunk/Changelog
   cdrkit/trunk/genisoimage/genisoimage.c
Log:
genisoimage: fix string overflow breakage when using the -root
option (https://bugzilla.redhat.com/show_bug.cgi?id=508449)



Modified: cdrkit/trunk/Changelog
===================================================================
--- cdrkit/trunk/Changelog	2009-07-24 02:31:58 UTC (rev 831)
+++ cdrkit/trunk/Changelog	2009-08-11 13:27:55 UTC (rev 832)
@@ -8,6 +8,10 @@
   * genisoimage: allow user to specify which checksum algorithms to run
     on the command line.
 
+  [ Nikola Pajkovsky ]
+  * genisoimage: fix string overflow breakage when using the -root
+    option (https://bugzilla.redhat.com/show_bug.cgi?id=508449)
+
  -- Steve McIntyre <93sam at debian.org>  Thu, 14 May 2009 00:28:48 +0100
 
 cdrkit (1.1.9) RELEASED; urgency=low

Modified: cdrkit/trunk/genisoimage/genisoimage.c
===================================================================
--- cdrkit/trunk/genisoimage/genisoimage.c	2009-07-24 02:31:58 UTC (rev 831)
+++ cdrkit/trunk/genisoimage/genisoimage.c	2009-08-11 13:27:55 UTC (rev 832)
@@ -3142,8 +3142,10 @@
 			if (reloc_root != NULL) {
 				strcpy(graft_point, reloc_root);
 				len = strlen(graft_point);
-				if (graft_point[len] != '/')
+				if (graft_point[len] != '/') {
 					graft_point[len++] = '/';
+					graft_point[len] = '\0';
+				}
 			} else {
 				len = 0;
 			}




More information about the Debburn-changes mailing list