Fix buffer overflow

This patch was carried by fedora for python-imaging
See https://bugzilla.redhat.com/show_bug.cgi?id=703212
This commit is contained in:
Sandro Mani 2013-02-06 00:51:25 +01:00
parent cc439099c1
commit 8c7c373676

View File

@ -75,7 +75,7 @@ typedef struct ImagingPaletteInstance* ImagingPalette;
struct ImagingMemoryInstance {
/* Format */
char mode[4+1]; /* Band names ("1", "L", "P", "RGB", "RGBA", "CMYK") */
char mode[6+1]; /* Band names ("1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "BGR;xy") */
int type; /* Data type (IMAGING_TYPE_*) */
int depth; /* Depth (ignored in this version) */
int bands; /* Number of bands (1, 2, 3, or 4) */