Commit graph

44 commits

Author SHA1 Message Date
minskim
36028a4809 Make gd build on Darwin
Include limits.h to use INT_MAX.
2017-02-09 03:27:30 +00:00
spz
41fbb1832d update of gd to 2.2.4.
Upstream Changelog:
Security

    gdImageCreate() doesn't check for oversized images and as such is prone to DoS vulnerabilities. (CVE-2016-9317)
    double-free in gdImageWebPtr() (CVE-2016-6912)
    potential unsigned underflow in gd_interpolation.c
    DOS vulnerability in gdImageCreateFromGd2Ctx()

Fixed

    Fix #354: Signed Integer Overflow gd_io.c
    Fix #340: System frozen
    Fix OOB reads of the TGA decompression buffer
    Fix DOS vulnerability in gdImageCreateFromGd2Ctx()
    Fix potential unsigned underflow
    Fix double-free in gdImageWebPtr()
    Fix invalid read in gdImageCreateFromTiffPtr()
    Fix OOB reads of the TGA decompression buffer
    Fix #68: gif: buffer underflow reported by AddressSanitizer
    Avoid potentially dangerous signed to unsigned conversion
    Fix #304: test suite failure in gif/bug00006 [2.2.3]
    Fix #329: GD_BILINEAR_FIXED gdImageScale() can cause black border
    Fix #330: Integer overflow in gdImageScaleBilinearPalette()
    Fix 321: Null pointer dereferences in gdImageRotateInterpolated
    Fix whitespace and add missing comment block
    Fix #319: gdImageRotateInterpolated can have wrong background color
    Fix color quantization documentation
    Fix #309: gdImageGd2() writes wrong chunk sizes on boundaries
    Fix #307: GD_QUANT_NEUQUANT fails to unset trueColor flag
    Fix #300: gdImageClone() assigns res_y = res_x
    Fix #299: Regression regarding gdImageRectangle() with gdImageSetThickness()
    Replace GNU old-style field designators with C89 compatible initializers
    Fix #297: gdImageCrop() converts palette image to truecolor image
    Fix #290: TGA RLE decoding is broken
    Fix unnecessary non NULL checks
    Fix #289: Passing unrecognized formats to gdImageGd2 results in corrupted files
    Fix #280: gdImageWebpEx() quantization parameter is a misnomer
    Publish all gdImageCreateFromWebp*() functions and gdImageWebpCtx()
    Fix issue #276: Sometimes pixels are missing when storing images as BMPs
    Fix issue #275: gdImageBmpCtx() may segfault for non-seekable contexts
    Fix copy&paste error in gdImageScaleBicubicFixed()

Added

    More documentation
    Documentation on GD and GD2 formats
    More tests
2017-02-04 23:05:51 +00:00
taca
c0b1b87bde Add fix for CVE-2016-7568.
Bump PKGREVISION.
2016-10-05 03:10:31 +00:00
adam
0e638c50bb We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga

Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold

Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 18:29:21 +00:00
taca
b46ca5bfb5 Add fix for CVE-2016-6128 from upstream.
Bump PKGREVISION.
2016-06-30 09:00:18 +00:00
agc
7f810a359f Add SHA512 digests for distfiles for graphics category
Problems found with existing digests:
	Package fotoxx distfile fotoxx-14.03.1.tar.gz
	ac2033f87de2c23941261f7c50160cddf872c110 [recorded]
	118e98a8cc0414676b3c4d37b8df407c28a1407c [calculated]
	Package ploticus-examples distfile ploticus-2.00/plnode200.tar.gz
	34274a03d0c41fae5690633663e3d4114b9d7a6d [recorded]
	da39a3ee5e6b4b0d3255bfef95601890afd80709 [calculated]

Problems found locating distfiles:
	Package AfterShotPro: missing distfile AfterShotPro-1.1.0.30/AfterShotPro_i386.deb
	Package pgraf: missing distfile pgraf-20010131.tar.gz
	Package qvplay: missing distfile qvplay-0.95.tar.gz

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 21:33:50 +00:00
richard
ebd2bd3701 update gdlib-config version info
bump PKGREVISION
2015-09-25 05:19:24 +00:00
ryoon
72c9025367 Update to 2.1.1
Changelog:
GD team proudly announces that the 2.1.1 version of GD Graphics Library
has been released. We have fixed some reported bugs and improved the build
scripts (cmake and configure). See the Changelog files for a full list
with details or CVEs.

This is a recommended update.
2015-06-30 10:20:10 +00:00
tnn
62a098fce8 Upstream patch for overflow in gif parser (CVE-2014-9709) 2015-04-12 15:09:32 +00:00
dholland
e44c261888 Add upstream report URL per PR 48334. 2013-11-11 21:34:40 +00:00
dholland
53e1776f93 Don't use ceill(); it isn't needed here and causes problems. See PR 48334.
Technically this change should bump PKGREVISION (as it changes the
binary package ever so slightly for platforms where the ceill() didn't
cause a build failure) but I'm going to let it slide.
2013-11-11 20:38:15 +00:00
adam
677a0b604f Changes 2.1.0:
* gdColorMapLookup() answers the RGB values according to given color map
* Added support of variable resolution
* new filter gdImagePixelate()
* merged improvements that PHP GD team had made to GD Graphics Library
* bugfixes
2013-09-02 21:17:42 +00:00
drochner
7fb9218719 add a patch from upstream to fix a bug which made that fontconfig
support could not be switched off once enabled
(could make a difference for gnuplot but I couldn't find a testcase yet)
2011-01-06 18:01:21 +00:00
taca
98be6963d9 Oops, update distinfo. 2009-10-22 15:20:53 +00:00
taca
02c3fc8679 Fix gd library security problem refering PHP's SVN repositry.
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546

Bump PKGREVISION.
(This fix is for php5 only and I don't know about php4.)
2009-10-22 14:39:55 +00:00
sno
085dd4bff8 PkgSrc changes:
- allow optionally build a gd which supports xpm
2009-04-12 00:29:26 +00:00
adam
8df6a539f1 Avoid dependency on libXpm; thanks to adrianp 2008-09-22 17:44:49 +00:00
adam
bdc1fb6be3 Changes 2.0.35:
* Fix valgrind error in gdImageFillTiled
* Add missing custom cmake macros
* Avoid signature buffer copy  in gd_gif_c
* Race condition in gdImageStringFTEx
* Reading GIF images is not thread safe (static usage in private functions)
* GIF Local palette is read twice
* GIF, Use local frame dimension when possible instead of the logical screen size
* OpenVMS build support, see VMS/README.VMS for the details
* GIF, do not try to use the global colmap if it does not exist
* gdImageAALine draws axis lines with two pixels width
* TTF usage doesn't work properly on Netware
* gdImageArc CPU usage with large angles
* gdImageFilledRectangle regression fixed when used with reversed edges
* Possible infinite loop in libgd/gd_png.c, flaw found by Xavier Roche
* Fixed segfault when an invalid color index is present in a GIF image data
* Possible integer overflow in gdImageCreateTrueColor
* gdImageCreateXbm can crash if gdImageCreate fails
2007-07-01 07:54:25 +00:00
drochner
279974b31d CVE-2006-2906 has been fixed upstream another way; this patch is unneeded 2007-02-22 17:21:18 +00:00
adam
752db05ec6 Patch patch-ac 2007-02-17 07:04:44 +00:00
adam
9c65cc2150 Changes 2.0.34:
* 32-bit multiplication overflow vulnerabilities along with a number of similar
  issues
* Memory allocation errors that were not checked
* Multiple issues in the GIF loader. Corrupt gif images would cause a segfault
  or infinite loop
* Malformed or empty PNG image also may have caused segfaults
* gdImageFillToBorder segfaulted when the color was not opaque (alpha > 0)
* Antialiased lines drawn on an images edge caused a segfault
* gdImageFill segfaulted when used with patterns or invalid arguments
* gdImageFilledEllipse did not respect transparency
2007-02-16 20:37:52 +00:00
salo
1d07100aaf Security fix for CVE-2006-2906:
"The LZW decoding in the gdImageCreateFromGifPtr function in the Thomas
 Boutell graphics draw (GD) library (aka libgd) 2.0.33 allows remote
 attackers to cause a denial of service (CPU consumption) via malformed
 GIF data that causes an infinite loop."

Patch from Xavier Roche via Ubuntu.
2006-06-14 21:42:33 +00:00
minskim
0cd8a5468b Do not define a variable in a header file; move the definition into .c
and leave the declraration only.  This fixes the graphviz build
problem reported by Adrian Portelli in PR pkg/28596.

Bump PKGREVISION.
2005-06-06 18:38:08 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
adam
394a584e28 Changes 2.0.33:
* Corrects a problem which prevented compiling with older versions of
  freetype2
2004-11-10 12:58:48 +00:00
adam
9476ff4a48 Changes 2.0.32:
* Animated GIF writing support
* Fontconfig support
* Open polygon drawing
* Fixes
2004-11-03 13:13:02 +00:00
adam
1f147d0fe9 Checksum corrected for the archive re-release 2004-07-23 07:52:16 +00:00
adam
ff7c8e0412 Changes 2.0.28:
* Restored support for reading and writing GIF images
* Fix for a possible problem in gdImageTrueColorToPalette
2004-07-22 12:38:49 +00:00
adam
e99c7029d0 Changes 2.0.27:
Fixes
* Potential memory overruns in gdImageFilled Polygon
* The sign of Y-axis values returned in the bounding box by gdImageStringFT
2004-07-16 07:46:54 +00:00
adam
a2640eaccc Changes 2.0.26:
* Windows build uses __stdcall calling convention
* Even more complete freetype version checking
* Binary transparency is now handled correctly in gdImageToPalette
2004-07-01 10:28:42 +00:00
adam
040ae95b77 Changes 2.0.25:
* Correction in gdfontl.h

Changes 2.0.24:
* bgd.dll is now compatible with Visual BASIC
* Even more complete freetype version checking
* Binary transparency is now handled correctly in gdImageToPalette
2004-05-25 14:55:34 +00:00
adam
59c77d0b47 Changes 2.0.23:
* horizontal and vertical DPI hints can now be given to the freetype font
  renderer via the gdFTStringExtra
* several autoconf problems have been addressed
* the current version of freetype is more precisely detected to prevent
  FT_ENCODING_SYMBOL-related errors
* a significant bug in gdNewDynamicCtx was fixed
2004-04-26 12:24:12 +00:00
adam
40907ad07a Changes 2.0.22:
* New font-fetching functions
* CMYK colour-space in JPEGs can now be opened
* Fixed configure script
2004-02-04 13:34:53 +00:00
adam
4a59225de2 Changes 2.0.21:
* added gdImageCreateFromPngPtr and similar
2004-01-20 14:32:58 +00:00
adam
f43126db58 Changes 2.0.20:
fixed binary API incompatibility introduced in 2.0.16
2004-01-09 14:25:51 +00:00
adam
286574be8a Changes 2.0.19:
correcting problem with the built-in gd fonts on Unix

Changes 2.0.18:
	introduced a conveniently precompiled DLL for Windows programmers

	the default separator of alternative truetype font paths is now
	a semicolon rather than a space
2004-01-08 12:47:49 +00:00
adam
30f7dd5502 Changes 2.0.17:
minor compilation and packaging problem fixed

Changes 2.0.16:
	Adds polar coordinate transformation, text on a circle, thread safety
	truetype font output, performance optimizations, correct compilation
	with the latest versions of freetype, and many fixes
2004-01-05 15:30:16 +00:00
adam
28d812fa48 Update gd to 2.0.15
What's new:
* Support for truecolor images
* Support for alpha channels
* The specialized .gd and .gd2 file formats
* Documentation fixes
* Bug fixes
2003-06-23 09:53:10 +00:00
cjep
a688f1b730 Use $(INSTALL) rather than "install". Fixes build on Solaris. 2003-06-07 11:32:39 +00:00
wiz
e871106642 Update to 1.8.4:
* Add support for FreeType2 (John Ellson ellson@lucent.com)
[not used in the package right now]
* Add support for finding in fonts in a builtin DEFAULT_FONTPATH, or in a path
  from the GDFONTPATH environment variable.
* remove some unused symbols to reduce compiler warnings
* bugfix in size comparisons in gdImageCompare
* REXX now mentioned
* All memory allocation functions are now wrapped within the library; gdFree is
  exported and recommended for freeing memory returned by the
  gdImage(Something)Ptr family of functions.
Based on a package sent to tech-pkg by Adam Ciarcinski.
2002-01-21 16:29:25 +00:00
jlam
b1ee4157e6 Convert to use buildlink.mk files and mark as USE_BUILDLINK_ONLY. Also
use REPLACE_PERL instead of patching to replace /usr/bin/perl.
2001-06-28 20:02:56 +00:00
kei
707c65edaa added support to fix the path to perl.
It seems that we need more generic way to replace the symbols (e.g. paths)
in the various files.
2001-06-14 06:36:50 +00:00
wiz
a4f21a5507 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 09:54:06 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00