brasero r1329 - in trunk: . src



Author: philippr
Date: Mon Sep 29 20:00:29 2008
New Revision: 1329
URL: http://svn.gnome.org/viewvc/brasero?rev=1329&view=rev

Log:
	Fix #554292 â brasero crashed with SIGSEGV in brasero_mkisofs_base_write_to_files()

	* src/burn-mkisofs-base.c (brasero_mkisofs_base_write_excluded),
	(brasero_mkisofs_base_write_to_files):


Modified:
   trunk/ChangeLog
   trunk/src/burn-mkisofs-base.c

Modified: trunk/src/burn-mkisofs-base.c
==============================================================================
--- trunk/src/burn-mkisofs-base.c	(original)
+++ trunk/src/burn-mkisofs-base.c	Mon Sep 29 20:00:29 2008
@@ -137,6 +137,11 @@
 	localpath = g_filename_from_uri (unescaped_uri, NULL, NULL);
 	g_free (unescaped_uri);
 
+	if (!localpath) {
+		BRASERO_BURN_LOG ("Localpath is NULL");
+		return BRASERO_BURN_ERR;
+	}
+
 	/* we need to escape some characters like []\? since in this file we
 	 * can use glob like expressions. */
 	character = localpath;
@@ -464,6 +469,11 @@
 	BraseroMkisofsBase base;
 	BraseroBurnResult result;
 
+	if (!grafts) {
+		BRASERO_BURN_LOG ("No graft passed");
+		return BRASERO_BURN_ERR;
+	}
+
 	/* initialize base */
 	bzero (&base, sizeof (base));
 



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