gimp r24671 - branches/gimp-2-4/plug-ins/common
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24671 - branches/gimp-2-4/plug-ins/common
- Date: Tue, 22 Jan 2008 13:16:41 +0000 (GMT)
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]