gimp r24670 - in trunk: . plug-ins/common
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24670 - in trunk: . plug-ins/common
- Date: Tue, 22 Jan 2008 13:15:56 +0000 (GMT)
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]