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



Author: neo
Date: Tue Jan 22 13:15:55 2008
New Revision: 24670
URL: http://svn.gnome.org/viewvc/gimp?rev=24670&view=rev

Log:
2008-01-22  Sven Neumann  <sven gimp org>

	* plug-ins/common/pcx.c: corrected check of the bytesperline field
	which caused monochrome PCX images to be rejected (bug #510658).


Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/pcx.c

Modified: trunk/plug-ins/common/pcx.c
==============================================================================
--- trunk/plug-ins/common/pcx.c	(original)
+++ trunk/plug-ins/common/pcx.c	Tue Jan 22 13:15:55 2008
@@ -381,7 +381,7 @@
       g_message (_("Unsupported or invalid image height: %d"), height);
       return -1;
     }
-  if (bytesperline < width)
+  if (bytesperline < (width * pcx_header.bpp) / 8)
     {
       g_message (_("Invalid number of bytes per line in PCX header"));
       return -1;



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