Commit Graph

120 Commits (3c1202e5bb91e04cfb54d211f553030c29a855c1)

Author SHA1 Message Date
Remi Collet 837b73276d fix integer overflow in AAline, fixed issue #5 2013-06-10 10:15:18 +02:00
Remi Collet eca37d620a fix hangs in gdImageAALine (bug int overflow can still occur, need improvment 2013-06-10 09:30:29 +02:00
Remi Collet da6c203bb3 fix palette copy in gdimageclone 2013-06-10 08:49:31 +02:00
Ondřej Surý 130fa2277c Merge patch to fix anti-aliased line doesn't honor thickness (fixes #16) 2013-06-07 11:33:04 +02:00
Pierre Joye 1e09060f05 add gdImageClone, use gdImageClone for 0 degree rotation, fix expected images for bug00067 test 2013-06-06 08:27:32 +02:00
Ondřej Surý cea4896303 Get rid of dead assignment in _gdImageFillTiled 2013-05-22 13:18:51 +02:00
Ondřej Surý a2e76f8b2a Get rid of dead assignment in gdImageTileGet 2013-05-22 13:17:55 +02:00
Ondřej Surý a3016ad01b Make gdImageRectangle simpler and get rid of dead assignments 2013-05-22 13:16:08 +02:00
Ondřej Surý f0ddf2eccd Introduce gdReallocEx which will free the original memory when realloc
fails to circumvent lost memory when doing:

    a = gdRealloc(a, s);
    if (!a)
        return;

Thanks to Niels Thykier for catching that.
2013-05-20 21:10:28 +02:00
Ondřej Surý bc70152cd8 Cherry-pick php-libgd fixes for imagefill() doesn't work correctly for small images 2013-05-03 15:01:19 +02:00
Pierre Joye 9850b02381 - fix logic and build 2013-05-03 07:58:35 +02:00
Ondřej Surý 9d20d61bf0 Add C99 inttypes support to gd.c 2013-05-02 09:30:37 +02:00
Ondřej Surý 2498ba501a Add missing semicolon to prev commit 2013-04-26 12:35:33 +02:00
Ondřej Surý 3be2f899db Workaround double->int conversion bug in gcc on some architectures (ia64, s390 and powerpc) 2013-04-26 12:34:00 +02:00
Ondřej Surý e5dcee5ddf gdErrorMethod declaration was wrong, we need to pass rest of the arguments in va_list 2013-04-23 11:01:57 +02:00
Ondřej Surý decf4407d4 Merge PHP libgd Xbm code 2013-04-22 08:44:21 +02:00
Pierre Joye d968c5edb9 ws space to tab 2013-04-18 21:18:45 +02:00
Pierre Joye b417ec22f9 ws space to tab 2013-04-18 21:17:53 +02:00
Ondřej Surý e5d9ea1826 Rename E_{ERROR,WARNING,...} to GD_{ERROR,WARNING,...} and install the header 2013-04-18 08:28:36 +02:00
Ondřej Surý 32b1307c62 Use custom error handler instead of fprintf(stderr, ...) 2013-04-18 08:28:36 +02:00
Pierre Joye 7f910fbcc8 fixes #21, clip rectangle to image size 2013-04-16 21:40:31 +02:00
Ondřej Surý 57ad70b2cd Fix support for large images; https://bugs.php.net/bug.php?id=51128 (libgd#177) 2013-04-11 16:01:54 +02:00
Takeshi Abe aeb7fed08e suppress -Wunused-variable 2013-04-11 19:05:04 +09:00
Ondřej Surý 15ea6bc5a1 Fix several uninitialized variable reads, dereferences before NULL checks, resource leaks and some other minor errors 2013-04-08 12:53:52 +02:00
Pierre Joye 85dd7fe474 - add gdImagePaletteToTrueColor 2013-04-07 18:39:36 +02:00
Pierre Joye cb476bce94 missing declation 2013-04-05 22:53:06 +02:00
Pierre Joye d7ce3d3181 backport fix for gdImageCopyResampled created noisy image with alpha 2013-04-05 08:08:45 +02:00
Pierre Joye b63349984b missing default init for interpolation method 2013-04-05 07:45:35 +02:00
pierrejoye e20413bf6b - apply same CS everywhere 2013-04-03 14:23:11 +02:00
Takeshi Abe faad083d77 micro optimization: avoid unnecessary initialization 2013-03-13 11:52:14 +09:00
tabe 535eab566b fix -Wunused-but-set-variable 2013-02-11 12:06:21 +09:00
tabe 3aaf1ab557 fix -Wunused-parameter 2013-02-11 11:31:40 +09:00
tabe a52c979f44 fixed FS#100 2010-01-19 17:58:20 +09:00
tabe 24ae1967f2 clean useless comments 2010-01-19 15:28:45 +09:00
tabe 71d403f969 moved loop-invariant codes 2010-01-19 15:16:08 +09:00
tabe 3ceaa53b13 removed unused codes 2010-01-19 12:36:51 +09:00
tabe 5876dc8ef4 fix possible SEGV by negatiev num of points 2010-01-14 19:10:57 +09:00
tabe 79f661f2f1 fixed FS#186 2009-03-17 17:29:29 +00:00
tabe abbe5d7ced see FS#170: give the callback its own type. 2009-03-09 15:10:53 +00:00
tabe f40454c1b3 ref FS#176: added support of variable resolution by Alan Boudreault. 2009-03-08 09:16:04 +00:00
tabe 6773f8b742 fixed FS#191; draw the center line regardless of thickness. 2009-01-18 12:46:38 +00:00
tabe dafdcaf5e4 optimization via the row-major order. 2008-11-30 08:34:37 +00:00
tabe b14559beb7 added gdImageColorReplaceThreshold. (see FS#170)
- added gd_color.[ch] for internal use
2008-11-23 14:32:35 +00:00
tabe 0e4c3ed7a6 optimized gdImageColorReplace*() 2008-11-20 15:24:48 +00:00
tabe fc32e572cd added gdImageColorReplace, gdImageColorReplaceArray, and gdImageColorReplaceCallback. (see FS#170) 2008-11-16 03:25:33 +00:00
pajoye c00717b1b6 - #145, Leak in gdImageCopyResized (Patch by Brent Bottles) 2008-02-01 01:48:17 +00:00
pajoye e9983b02b2 - #50, add gdImageEllipse (test to come) 2007-12-12 16:30:33 +00:00
pajoye daac285cd6 - #81, MFB, gdImageCopy ignores the transparent color 2007-11-20 13:43:35 +00:00
mattias 234498d77c -MFB, #113, gdImageColorTransparent can write outside buffer 2007-09-09 13:14:25 +00:00
mattias 841d43d812 -MFB #112, More checking 2007-09-01 12:35:18 +00:00