[Goodies-commits] r6780 - xfburn/trunk/xfburn
David Mohr
squisher at xfce.org
Wed Feb 25 08:07:53 CET 2009
Author: squisher
Date: 2009-02-25 07:07:53 +0000 (Wed, 25 Feb 2009)
New Revision: 6780
Modified:
xfburn/trunk/xfburn/xfburn-data-composition.c
xfburn/trunk/xfburn/xfburn-global.h
Log:
Adding check for maximum iso9660 content file size
Modified: xfburn/trunk/xfburn/xfburn-data-composition.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-data-composition.c 2009-02-25 02:12:30 UTC (rev 6779)
+++ xfburn/trunk/xfburn/xfburn-data-composition.c 2009-02-25 07:07:53 UTC (rev 6780)
@@ -1144,6 +1144,14 @@
const gchar *mime_icon_name = NULL;
GdkPixbuf *mime_icon = NULL;
gint x,y;
+
+ if (s.st_size > MAXIMUM_ISO_FILE_SIZE) {
+ gdk_threads_enter ();
+ xfce_err (_("%s cannot be added to the composition, because it exceeds the maximum allowed file size for iso9660."), path);
+ gdk_threads_leave ();
+
+ return FALSE;
+ }
gdk_threads_enter ();
screen = gtk_widget_get_screen (GTK_WIDGET (dc));
Modified: xfburn/trunk/xfburn/xfburn-global.h
===================================================================
--- xfburn/trunk/xfburn/xfburn-global.h 2009-02-25 02:12:30 UTC (rev 6779)
+++ xfburn/trunk/xfburn/xfburn-global.h 2009-02-25 07:07:53 UTC (rev 6780)
@@ -49,6 +49,8 @@
#define PCM_BYTES_PER_SECS 176400
+#define MAXIMUM_ISO_FILE_SIZE 0xFFFFFFFF
+
/* DEBUG ONLY */
/* do not use the real device, instead make everything write to /dev/null
More information about the Goodies-commits
mailing list