Commit graph

42 commits

Author SHA1 Message Date
rillig
997a83ae1f graphics/gd: fix undefined behavior in ctype functions 2018-02-25 14:34:22 +00:00
adam
badc12d1e2 Changes 2.2.5:
Security
* Double-free in gdImagePngPtr(). (CVE-2017-6362)
* Buffer over-read into uninitialized memory. (CVE-2017-7890)

Fixed
* Fix 109: XBM reading fails with printed error
* Fix 338: Fatal and normal libjpeg/ibpng errors not distinguishable
* Fix 357: 2.2.4: Segfault in test suite
* Fix 386: gdImageGrayScale() may produce colors
* Fix 406: webpng -i removes the transparent color
* Fix Coverity 155475: Failure to restore alphaBlendingFlag
* Fix Coverity 155476: potential resource leak
* Fix several build issues and test failures
* Fix and reenable optimized support for reading 1 bps TIFFs

Added
* The native MSVC buildchain now supports libtiff and most executables
2017-09-04 06:20:45 +00:00
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
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
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
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
tron
7d755a2870 Use default compiler to avoid problem with new "libtool". 2001-03-04 09:32:43 +00:00
wiz
2ff78d3797 Remove -O from default CFLAGS, on request by Adam Ciarcinski. 2001-01-09 17:55:21 +00:00
wiz
2b221128b8 Fix libgd.so. Patch supplied by Hubert Feyrer. 2000-12-16 00:29:22 +00:00
jlam
90e98f577e Honor CFLAGS passed in from environment during build. 2000-12-11 05:49:49 +00:00
he
5360945a7b Upgrade this package from 1.8.1 to 1.8.3; the distribution file
for 1.8.1 was replaced with 1.8.3.
2000-06-14 16:33:46 +00:00
he
23caf7beba Add prototype for gdImageCreateFromXpm in gd.h.
Patch originally (a small) part of GD-1.26.
2000-03-21 11:10:39 +00:00
tron
63ffd85cb8 We need to link executables with "libintl". 2000-03-17 23:16:18 +00:00
he
0b5cfbae53 Update this package to version 1.8.1.
The 1.7.3 distribution file now contains 1.8.1; lame.
2000-03-17 21:05:19 +00:00
jlam
2e2b351156 * Update to gd-1.7.3. Now depends on graphics/freetype and graphics/xpm.
* Build process no longer uses configure.
* Change DESCR to reflect that gd makes PNG, not GIF, files.
* Version library at 1.7.  Fixes PR#????

Changes from version 1.6.3:
--------------------------

  What's new in version 1.7.3?

   Another attempt at Makefile fixes to permit linking with all libraries
   required on platforms with order- dependent linkers. Perhaps it will
   work this time.

  What's new in version 1.7.2?

   An uninitialized-pointer bug in gdtestttf.c was corrected. This bug
   caused crashes at the end of each call to gdImageStringTTF on some
   platforms. Thanks to Wolfgang Haefelinger.

   Documentation fixes. Thanks to Dohn Arms.

   Makefile fixes to permit linking with all libraries required on
   platforms with order- dependent linkers.

  What's new in version 1.7.1?

   A minor buglet in the Makefile was corrected, as well as an inaccurate
   error message in gdtestttf.c. Thanks to Masahito Yamaga.

  What's new in version 1.7?

   Version 1.7 contains the following changes:
     * Japanese language support for the TrueType functions. Thanks to
       Masahito Yamaga.
     * autoconf and configure have been removed, in favor of a carefully
       designed Makefile which produces and properly installs the library
       and the binaries. System-dependent variables are at the top of the
       Makefile for easy modification. I'm sorry, folks, but autoconf
       generated _many, many confused email messages_ from people who
       didn't have things where autoconf expected to find them. I am not
       an autoconf/automake wizard, and gd is a simple, very compact
       library which does not need to be a shared library. I _did_ make
       many improvements over the old gd 1.3 Makefile, which were
       directly inspired by the autoconf version found in the 1.6 series
       (thanks to John Ellson).
     * Completely ANSI C compliant, according to the -pedantic-errors
       flag of gcc. Several pieces of not-quite-ANSI-C code were causing
       problems for those with non-gcc compilers.
     * gdttf.c patched to allow the use of Windows symbol fonts, when
       present (thanks to Joseph Peppin).
     * extern "C" wrappers added to gd.h and the font header files for
       the convenience of C++ programmers. bdftogd was also modified to
       automatically insert these wrappers into future font header files.
       Thanks to John Lindal.
     * Compiles correctly on platforms that don't define SEEK_SET. Thanks
       to Robert Bonomi.
     * Loads Xpm images via the gdImageCreateFromXpm function, if the Xpm
       library is available. Thanks to Caolan McNamara.
1999-11-01 03:29:29 +00:00
agc
e503aa0aed Update this package to version 1.6.3, thereby fixing PR 7969 from
Jim Spath.

Changes from previous version include:

+ Version 1.6.3 corrects a memory leak in gd_png.c.  This leak caused a
significant amount of memory to be allocated and not freed when
writing a PNG image.

+ Version 1.6.2 from John Ellson adds two new functions:
gdImageStringTTF gdImageColorResolve

+ Version 1.6.1 incorporates superior PNG reading and writing code
from Greg Roelofs, with minor modifications by Tom Boutell.

+ Version 1.6 features the following changes:
Support for 8-bit palette PNG images has been added.  Support for GIF
has been removed.  This step was taken to completely avoid the legal
controversy regarding the LZW compression algorithm used in GIF.
Unisys holds a patent which is relevant to LZW compression.  PNG is a
superior image format in any case.  Now that PNG is supported by both
Microsoft Internet Explorer and Netscape (in their recent releases),
we highly recommend that GD users upgrade in order to get
well-compressed images in a format which is legally unemcumbered.

+ Version 1.5 featured the following changes:
New GD2 format
Re-arranged source files
Extended I/O capabilities.
Better support for Lincoln Stein's Perl Module
Added functions

+ Version 1.4 features the following changes:
Fixed polygon fill routine (again)
Support for alternate data sources
Support for alternate data destinations
More tolerant when reading GIFs
1999-08-26 15:26:26 +00:00
tsarna
2404734a6a Changed to build shared libraries. Closes PR#7403 by Jarkko Torppa. 1999-05-02 17:46:19 +00:00
agc
86db14e819 Add NetBSD RCS Ids. 1998-08-07 10:35:47 +00:00
bouyer
94daf916e7 Update to version 1.3. 1998-04-28 14:07:41 +00:00
explorer
7c11f99455 import the gd graphics generation library 1998-03-07 21:59:13 +00:00