gimp r24671 - branches/gimp-2-4/plug-ins/common



Author: neo
Date: Tue Jan 22 13:16:40 2008
New Revision: 24671
URL: http://svn.gnome.org/viewvc/gimp?rev=24671&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:
   branches/gimp-2-4/plug-ins/common/pcx.c

Modified: branches/gimp-2-4/plug-ins/common/pcx.c
==============================================================================
--- branches/gimp-2-4/plug-ins/common/pcx.c	(original)
+++ branches/gimp-2-4/plug-ins/common/pcx.c	Tue Jan 22 13:16:40 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]