1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Commit Graph

248 Commits

Author SHA1 Message Date
Kalle Sommer Nielsen
22a73c6197 Use correct data types here, and gdImageSaveAlpha for the alpha flag 2009-04-25 06:20:26 +00:00
Takeshi Abe
b6b8240fb3 check non-null before any use. 2009-04-23 16:25:17 +00:00
Ilia Alshanetsky
0bb885a441 MFB: Fixed bug #47946 (ImageConvolution overwrites background) 2009-04-12 14:45:05 +00:00
Pierre Joye
855da166ef - missing implementation gdJpegGetVersionString (thanks Rob) 2009-04-07 13:07:04 +00:00
Pierre Joye
086765ff17 - MFB: initial import, support for external gd library while keeping bug fixes or features (more will be activated later) 2009-04-07 09:43:53 +00:00
Takeshi Abe
a6ef4675fb replaced static gdPngJmpbufStruct, which is afraid of being shared with
several threads, by a couple of auto variables.
2009-04-01 16:05:17 +00:00
Takeshi Abe
cd31aa574b MFB: #43073, TrueType bounding box is wrong for angle<>0 2009-03-25 16:15:18 +00:00
Takeshi Abe
27cf6d587f Fixed libgd #186 (Tiling true colour with palette image does not work) 2009-03-18 15:29:56 +00:00
Takeshi Abe
c1b257fc45 Fixed bug #45799 (imagepng() crashes on empty image) 2009-03-14 16:06:57 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Takeshi Abe
95651ba360 fixed typos 2009-02-13 16:02:46 +00:00
Takeshi Abe
4c0cbee415 - fixed memory leaks in gdImageCreateFromXpm()
- dropped unused codes
2009-02-11 17:56:17 +00:00
Takeshi Abe
9874bacbc9 optimization via the row-major order. 2009-02-11 16:30:48 +00:00
Takeshi Abe
a98959be35 fixed the bug of libgd #191 (A circle becomes square) 2009-01-19 15:41:15 +00:00
Takeshi Abe
1b9910b645 added pixelate filter. 2009-01-14 18:57:51 +00:00
Pierre Joye
431596f203 - [DOC] support for PNG gray levels+ alpha image, loaded as truecolor 2009-01-14 10:16:42 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Scott MacVicar
29ab16ee67 Fix segfault and potential security issue in imagerotate(). 2008-12-10 13:30:12 +00:00
Pierre Joye
a5368aeb73 - MFH:
- Fix linux build (static)
 - add gd[Format]Version[Int|String] first methods to work around the png
   header issues
2008-11-06 10:23:52 +00:00
Rasmus Lerdorf
f5dc937a0d Fix for bug #45030 2008-07-31 09:23:59 +00:00
Pierre Joye
fa3f2f7ead - MFB: #43790, fix crash when no family name has been found 2008-01-09 01:52:03 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Mattias Bengtsson
7e0ca9e1d7 -MFB, Fixed Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd) 2007-11-04 23:57:07 +00:00
Mattias Bengtsson
f2b8a75004 -MFB, Be paranoid and dont allow multiplication with zero 2007-10-23 01:58:41 +00:00
Pierre Joye
32a5a95752 - MFB 2007-09-11 21:31:14 +00:00
Pierre Joye
9dfdaac244 - MFB:
- gdImageTileApply does not respect transparent color
 - gdImageArc regression
 - Alpha channel support for gdImageColor (IMG_FILTER_COLORIZE)
2007-09-11 21:07:04 +00:00
Nuno Lopes
0006462a5b MFB: malloc+memset == calloc
# this was sitting here for quite a looong time..
2007-09-03 14:34:42 +00:00
Pierre Joye
268386674a - gd #106, imagerectangle draws 1x1 rectangles as 1x3 rectangles 2007-08-26 20:33:22 +00:00
Mattias Bengtsson
94bf93f531 -MFB: libgd #101, imagecreatefromgd can crash if gdImageCreate fails 2007-08-09 14:22:38 +00:00
Mattias Bengtsson
3b8fc04079 -MFB: libgd #94, imagecreatefromxbm can crash if gdImageCreate fails 2007-08-09 12:09:30 +00:00
Pierre Joye
bf11cccf75 - Re commit "sync with libgd: improve _gdImageFillTiled()", I reverted
it in my previous commit
2007-06-17 17:14:02 +00:00
Pierre Joye
fd8baff90a - MFB: Drop useless tests (Daniel Diaz) 2007-06-17 17:12:46 +00:00
Pierre Joye
a05b93e5fc - #41717, imagepolygon does not respect thickness
(sync with libgd)
2007-06-17 10:53:33 +00:00
Nuno Lopes
5da2f6e7de MFB: sync with libgd: improve _gdImageFillTiled() 2007-06-15 19:50:05 +00:00
Pierre Joye
f1ef64401e - MFB: Fixed regression introduced by the fix for the libgd bug #74 2007-06-14 19:18:00 +00:00
Pierre Joye
7114e613d8 - MFB: #41630, fix segfault when an invalid color index is present in the
image data
2007-06-08 05:25:52 +00:00
Antony Dovgal
144b05cdd0 fix several integer overflows in GD 2007-06-06 09:43:39 +00:00
Pierre Joye
d6eb2e1c46 - @DOC add constants GD_MAJOR_VERSION, GD_MINOR_VERSION, GD_RELEASE_VERSION
GD_EXTRA_VERSION and GD_VERSION_STRING
- fix #ifdef else clause
2007-06-03 17:43:13 +00:00
Pierre Joye
69dca143c9 - libgd #86: Fixed possible infinite loop in libgd/gd_png.c
(Reported by Xavier Roche)
2007-05-16 22:16:22 +00:00
Scott MacVicar
fef929f044 Fixed bug #40130 (TTF usage doesn't work properly under Netware) 2007-04-23 15:06:13 +00:00
Pierre Joye
e24e904efb - libgd #74, gdImageFilledArc, huge CPU usage with large angles 2007-04-14 17:30:51 +00:00
Nuno Lopes
5e50336e7e MFB: fix race condition on font cache shutdown 2007-04-04 14:26:04 +00:00
Pierre Joye
19ac790b35 - MFH:
- do not try to use the global color map when none was found (Nuno, Pierre)
 - free im on error
2007-04-04 11:42:54 +00:00
Pierre Joye
a110d07c96 - fix previous commit (missing #ifdef in shutdown declaration)
- MFB:
 - Sync with gd 2.0.35 (bug #52, #60 and #66)
  - Improve TS of gif loading code (Roman Nemecek, Nuno, Pierre)
  - a frame size must be confined to the screen defition (Pierre)
  - be sure to always read the dimensions in the frame and does not use
    the screen size (see #66 for a side effect) (Pierre)
  - Update #37360 test. The frame does not fit the logical screen (specs
    tell that it must fit) (Pierre)
2007-04-04 01:54:34 +00:00
Pierre Joye
1cd4938ef5 - remove double lock (tween colors cache is created in each thread, the
cache mutex is already locked earlier)
- #40858, other TS improvements for gd freetype cache management
  cache initialization and shutdown is now done in MINIT and MSHUTDOWN.
2007-04-04 00:44:38 +00:00
Pierre Joye
02f5db029d - MFB: colors allocated henceforth from the resulting image overwrite
the palette colors (sync with 2.0.34) (Rob Leslie)
2007-04-04 00:41:08 +00:00
Pierre Joye
37ad5f77df - CVE-2007-1001, integer overflow with invalid wbmp images 2007-03-10 12:16:19 +00:00
Pierre Joye
01c8b39ab8 - MFB: #40764, line thickness not respected for horizontal and vertical
lines
2007-03-10 01:23:42 +00:00
Nuno Lopes
78f33b160a MFB: fix thread unsafety in the gif reader code (merge from libgd cvs) 2007-03-08 20:26:48 +00:00
Nuno Lopes
9777b3a933 MFB
#Pierre: libgd isn't affected. this problem was caused by the recent conversion to strlcpy()
2007-03-02 18:46:16 +00:00