[Image-SIG] Re: PIL Bug: Crash processing GIF image
Fredrik Lundh
fredrik at pythonware.com
Sat Feb 21 06:04:49 EST 2004
> it looks like the GIF codec messes up when it's trying to determine
> the right size of the file, which results in a 62004-pixel high image
> memory, which results in a 0-pixel wide thumbnail, which causes the
> quantization code to mess up.
here's a quick fix for the quantization code. convert(ADAPTIVE) of a
zero-sized image will still result in a traceback after this change; that's
likely to be changed in 1.1.5.
</F>
==== //modules/pil/libImaging/Quant.c#4 (ktext) ====
*** 1593,1599 ****
} else {
- free(p);
return (Imaging) ImagingError_ValueError("quantization error");
}
--- 1594,1599 ----
More information about the Image-SIG
mailing list