gimp r27150 - in trunk: . plug-ins/common



Author: neo
Date: Mon Oct  6 21:18:58 2008
New Revision: 27150
URL: http://svn.gnome.org/viewvc/gimp?rev=27150&view=rev

Log:
2008-10-06  Sven Neumann  <sven gimp org>

	* plug-ins/common/file-gif-load.c (GetCode): be more tolerant 
and
	continue loading with a warning message if there are bits 
missing
	at the end of the file. Fixes bug #555280.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/file-gif-load.c

Modified: trunk/plug-ins/common/file-gif-load.c
==============================================================================
--- trunk/plug-ins/common/file-gif-load.c	(original)
+++ trunk/plug-ins/common/file-gif-load.c	Mon Oct  6 21:18:58 2008
@@ -660,10 +660,8 @@
       if (done)
         {
           if (curbit >= lastbit)
-            {
-              g_message ("Ran off the end of my bits");
-              gimp_quit ();
-            }
+            g_message ("Ran off the end of my bits");
+
           return -1;
         }
 
@@ -706,7 +704,7 @@
     {
       if (input_code_size > MAX_LZW_BITS)
         {
-          g_message("Value out of range for code size (corrupted file?)");
+          g_message ("Value out of range for code size (corrupted file?)");
           return -1;
         }
 



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