From Bugzilla Helper: User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; ru-ru) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5 Description of problem: If one will try to draw antialiased line parallel to horizontal or vertical border - GD will try to put pixel outside of picture limits, which in majority of cases will lead to segfault. Version-Release number of selected component (if applicable): gd-2.0.33-2 How reproducible: Always Steps to Reproduce: 1. Compile following program: #include <gd.h> int main(void) { gdImage *img = gdImageCreateTrueColor(640,480); gdImageAlphaBlending(img, 1); gdImageSetAntiAliased(img, 1); gdImageLine(img, 202, 479, 198, 479, -7); } 2. Run it Actual Results: segfault Expected Results: no segfault Additional info:
Created attachment 118608 [details] Following patch will fix the problem mentioned At the very begining of gdImageSetAAPixel color function checks that action are performed within picture limits
Looks good, will be included in next gd build for development. Read ya, Phil