Commit Graph

105 Commits (bfbbf3c9f26817f436f06ae004e1ab9d47344d8e)

Author SHA1 Message Date
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
mattias eaaa940127 -MFB #112, gdImageColorDeallocate can write outside buffer 2007-08-31 07:43:58 +00:00
mattias 2c08342866 - #111, Optimization for single pixel line not in correct order 2007-08-30 19:03:06 +00:00
pajoye 1e3d5f1e70 - MFB: #106, gdImageRectangle draws 1x1 rectangles as 1x3 rectangles 2007-08-26 19:46:19 +00:00
mattias 8734260c30 - it has come clear that nc can be negative afterall 2007-08-08 19:51:06 +00:00
mattias 7fc83cfdca - Fixed fix :) 2007-08-08 18:28:55 +00:00
mattias 27b3f3086d - nc in gdImageFill sould not be less than 0 2007-08-08 18:16:44 +00:00
mattias 5008306b0d - #109, Possible integer overflow in gdImageFill() 2007-08-08 12:57:18 +00:00
pajoye a5550a7a70 - #94, gdImageCreateXbm can crash if gdImageCreate fails 2007-06-19 20:25:32 +00:00
nlopess 96f5a6d464 add const to gd internal tables (gdCostT, gdSinT, UnicodeTbl) 2007-06-17 22:11:20 +00:00
nlopess 9d05dd439d plug a memleak in _gdImageFillTiled() on error condition
replace a malloc+memset with calloc instance
2007-06-17 18:56:28 +00:00
nlopess 86a5debede improve _gdImageFillTiled() internal function:
mark it as static
fix possible segfault if calloc() failed
save a lot of temporary memory
# this is the remaining patch for bug #41
2007-06-15 19:34:31 +00:00
pajoye 39eb8e6c77 - WS 2007-06-14 19:23:57 +00:00
pajoye b78a0cdbdd - #89, Possible integer overflow in gdImageCreateTrueColor 2007-06-09 12:32:25 +00:00
pajoye 57d7bf4a6a - #79, MFB:
- fix hline and vline calls
  - add test case
2007-05-07 10:26:44 +00:00
pajoye 43d4d06d3e - Sync HEAD with GD_2_0
- Begin 2.1.0 work (mark it as 2.1.0 :)
2007-05-06 19:53:05 +00:00