]> git.pld-linux.org Git - packages/gd.git/commitdiff
- crash fix (from FC)
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Mar 2006 14:22:04 +0000 (14:22 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gd-SetAAPixel.patch -> 1.1

gd-SetAAPixel.patch [new file with mode: 0644]

diff --git a/gd-SetAAPixel.patch b/gd-SetAAPixel.patch
new file mode 100644 (file)
index 0000000..c175f04
--- /dev/null
@@ -0,0 +1,14 @@
+--- gd-2.0.33/gd.c.orig        2004-11-01 21:28:56.000000000 +0300
++++ gd-2.0.33/gd.c     2005-09-09 00:00:42.000000000 +0400
+@@ -3032,6 +3032,11 @@
+ static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t)
+ {
+       int dr,dg,db,p,r,g,b;
++
++        /* Nikita Shulga: Can be called by gdImageAALine outside of clipped range*/
++        /* Should avoid any drawing in that case */
++        if (!gdImageBoundsSafeMacro(im,x,y)) return;
++
+       p = gdImageGetPixel(im,x,y);
+         /* TBB: we have to implement the dont_blend stuff to provide
+           the full feature set of the old implementation */
This page took 0.039015 seconds and 4 git commands to generate.