summaryrefslogtreecommitdiff
path: root/src/gd_gif_out.c
Commit message (Collapse)AuthorAgeFilesLines
* fix #415, the same is needed in the other section, add testbug/415Pierre Joye2021-08-251-0/+4
|
* Fix #415, Assuming TopOfs and LeftOfs zero, we can safely skip any (x,y) out ↵Pierre Joye2021-08-251-0/+2
| | | | of the previous image bounds
* Fix #725, Gif Anim API, adding frame leak from tmp image, test already in ↵Pierre Joye2021-08-131-0/+4
| | | | place (gcc ASAN detects it)
* Fix GD build with -D SIGNED_COMPARE_SLOWChristoph M. Becker2019-11-211-1/+1
| | | | | | | | Apparently, this has not been tested for a long time, and might be a refactoring relict. Anyhow, we have to pass the context to `GIFNextPixel` as well. This issue has been reported by Kleber Tarcísio.
* Fix #499: gdImageGifAnimAddPtr: heap corruption with 2 identical imagesChristoph M. Becker2019-05-261-3/+21
| | | | | | | | Whenever `gdImageGifAnimAddPtr()` calls `gdImageGifAnimAddCtx()` and the latter fails, we must not call `gdDPExtractData()`; otherwise a double-free would occur. Since `gdImageGifAnimAddCtx` is a void function, and we can't change that for BC reasons, we're introducing a static helper which is used internally.
* Fix #492: Potential double-free in gdImage*Ptr()Christoph M. Becker2019-01-171-3/+15
| | | | | | | | | | | | | | | Whenever `gdImage*Ptr()` calls `gdImage*Ctx()` and the latter fails, we must not call `gdDPExtractData()`; otherwise a double-free would happen. Since `gdImage*Ctx()` are void functions, and we can't change that for BC reasons, we're introducing static helpers which are used internally. We're adding a regression test for `gdImageJpegPtr()`, but not for `gdImageGifPtr()` and `gdImageWbmpPtr()` since we don't know how to trigger failure of the respective `gdImage*Ctx()` calls. This potential security issue has been reported by Solmaz Salimi (aka. Rooney).
* clean up trailing whitespace/newlinesMike Frysinger2018-06-211-5/+5
| | | | | This is preparation for adding some linting checks for new commits from people. Shouldn't be any functional changes here (tests still pass!).
* Mark up code examples with (start|end code)Christoph M. Becker2016-08-231-44/+46
| | | | | | This makes the code better readable in the sources, and we get syntax highlighting in the generated HTML wherever we want it (i.e. not necessarily always as with `-hl all`).
* Group the supported image formats in the menu of the docsChristoph M. Becker2016-08-141-0/+6
| | | | | To do so we have to add Menu.txt to the project, but we can ignore Languages.txt and Topics.txt, at least for now.
* gif: avoid out-of-bound reads of masks array #209Mike Frysinger2016-05-141-1/+11
| | | | | | | | | | | | When given invalid inputs, we might be fed the EOF marker before it is actually the EOF. The gif logic assumes once it sees the EOF marker, there won't be any more data, so it leaves the cur_bits index possibly negative. So when we get more data, we underflow the masks array. Flag it so we don't try to output anything more. The image is invalid, so we shouldn't be truncating any valid inputs. This fixes #209.
* Started importing the old manual into Naturaldocs comments.Chris Reuter2014-01-071-3/+445
| | | | | | | | | | | | | | | | This changeset imports documention for gdImage to gdImagePng*() into Natural Docs. Documention is based on the text of the original manual, version 2.0.36 but adapted to better suit the format. Subsequent changesets will introduce docs for subsequent manual entries. naturaldocs, when present, is invoked by bootstrap.sh. The completed manual will be in docs/naturaldocs/html/index.html. It can also be explicitly invoked by running docs/naturaldocs/run_docs.sh. This change also removed docs/naturaldocs/project/Menu.txt, since it currently contains no non-generated content and is prone to introduce noise into the changeset.
* Fix config.h include before gd.h to get the HAVE_VISILIBITY symbol availableOndřej Surý2013-04-121-0/+4
|
* Fix several uninitialized variable reads, dereferences before NULL checks, ↵Ondřej Surý2013-04-081-2/+2
| | | | resource leaks and some other minor errors
* - apply same CS everywherepierrejoye2013-04-031-73/+73
|
* fixed FS#227tabe2010-08-241-2/+2
|
* removed an unused variabletabe2010-01-131-2/+1
|
* fixed possible segfaults when gdNewDynamicCtx() returns nulltabe2009-06-251-0/+3
|
* fix for FS#204tabe2009-06-181-0/+4
| | | | | * gdImageCreateFrom*() returns null if null pointer given * gdImage*() puts nothing if null pointer given
* fixed #181.tabe2008-11-031-4/+4
|
* - According to the standard, the '#' char must be at column 0 (Thanks Nuno)mattias2007-10-281-2/+2
|
* - ws + csmattias2007-10-241-732/+672
|
* - #14, sanity check in gd_gif_outpajoye2007-01-041-0/+3
|
* - #4, TrueColor transparency with GIF palette outputpajoye2006-10-081-1/+1
|
* - sync to 2.0.33pierre2006-04-051-3/+3
|
* - sync to 2.0.29pierre2006-04-051-0/+434
|
* - sync to 2.0.28pierre2006-04-051-813/+759
|
* - sync to 1.5.0GD_1_5_0pierre2006-04-051-0/+813