[Image-SIG] ANN: PIL 1.1.3rc1 sneak release

Fredrik Lundh fredrik@pythonware.com
Sun, 10 Mar 2002 23:35:19 +0100


> I just uploaded a sneak release of PIL 1.1.3 release
> candidate 1 to effbot.org:

buglet: the coefficient buffer in the new Antialias module
wasn't properly allocated.  this can cause segmentation
violations in some cases.

:::

here's a patch:

==== //modules/pil/libImaging/Antialias.c#5 ====
@@ -136,7 +136,7 @@
     support = support * filterscale;

     /* coefficient buffer (with rounding safety margin) */
-    k = malloc(((int) support + 10) * sizeof(float));
+    k = malloc(((int) support * 2 + 10) * sizeof(float));
     if (!k)
         return (Imaging) ImagingError_MemoryError();

:::

the setup.py file is also missing from the release kit (which
probably was a good thing, because it was slightly broken).
I'll ship a c2 release within a day or two.

regards /F