summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #848 from fulax/github_bug_00847HEADmasterChristoph M. Becker2023-01-255-1/+21
|\ | | | | Fix #847: enable back GD_BICUBIC* interpolation methods
| * Fix #847: enable back GD_BICUBIC* interpolation methodsCyprien Nicolas2023-01-255-1/+21
|/
* Add missing includeKai Pastor2022-10-301-0/+1
| | | `gd_webp.c` needs `ssize_t` which is defined in `gd_intern.h` for MSVC.
* configure: use m4_tolower helperMike Frysinger2022-08-281-19/+20
| | | | | This is new in autoconf-2.69 and lets us kill off some boilerplate in our various library tests.
* configure: require autoconf-2.69Mike Frysinger2022-08-281-1/+1
| | | | | | This was released in 2012, and only developers really need it, so bump the requirement. This will let us use some newer features that aren't available in 2.64.
* configure: add log when we check config scriptsMike Frysinger2022-08-281-0/+8
| | | | | | | This should make it more obvious when we aren't probing for the libs and headers directy ourselves. Closes #841.
* Merge pull request #835 from kraj/masterChristoph M. Becker2022-08-242-28/+8
|\ | | | | Fix deprecared function prototypes
| * Fix deprecared function prototypesKhem Raj2022-08-232-28/+8
|/ | | | | | | Fixes following errors: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Merge pull request #833 from khaledhosny/fix-raqm-rotationChristoph M. Becker2022-08-081-1/+14
|\ | | | | Fix #790, don't rotate glyph positions with Raqm 0.9.0+
| * Fix #790, don't rotate glyph positions with Raqm 0.9.0+Khaled Hosny2022-08-011-1/+14
| | | | | | | | Raqm will apply the transformation matrix set on the FT_Face itself.
* | Fix #834: gdfonts.c comment mistakeChristoph M. Becker2022-08-051-1/+1
|/
* Merge pull request #832 from cmb69/cmb/831Christoph M. Becker2022-06-171-18/+34
|\ | | | | Fix #831: gdImageAvif memory leak
| * Fix #831: gdImageAvif memory leakChristoph M. Becker2022-06-101-18/+34
|/ | | | | | | | | | | First, we must not forget to call `avifImageDestroy()` when we're finished with the image. Then we also need to cater to the allocated `dataBuf`. To keep track of that, we "extend" `avifIO` as `avifIOCtxReader`. To simplify, and to avoid unnecessary allocations, we use `realloc()`. To better fit with GD, we also use the GD memory allocation functions instead of the ones provided by libavif.
* Some fixes for MINGW (#828)مهدي شينون (Mehdi Chinoune)2022-04-159-43/+43
| | | | | | | | | | | | | | | | | * Enable webpng on MINGW * Detect GD version using cmake language * Use _aligned_malloc instead of posix_memalign on Windows * Include missing "errno.h" * Fix finding WEBP on MINGW * Fix finding XPM on MINGW * Use PkgConfig to find packages on MINGW * CI: Enable more options for MINGW
* CI: update to newer coverity action versionMike Frysinger2022-03-051-3/+2
|
* Update README.mdPierre Joye2022-02-251-1/+1
|
* update changelogPierre Joye2022-02-071-0/+1
|
* enable interlace transform when reading png (#823)Brett2022-02-071-0/+5
|
* partial #818, fix again that logic. I need to find something more generic ↵Pierre Joye2022-02-011-4/+4
| | | | and convenient to handle errors, assert and free used resources on fail assert
* Bug/818 (#821)Pierre Joye2022-02-013-12/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Partial #818, unused arg * Partial #818, init var * partail #818, fix va_args usage * partail #818, handle f* calls and avoid possible call to malloc with negative values * partail #818, prevent double free * partail #818, resource leak if test fail * partail #818, null deref fix * partail #818, avoid double free on fp failure * Partial #818, fix error msg * Partial #818, leak on error * Partial #818, null deref * Partial #818, avoid possible negative index on failure * partial #818, does not free if we return if requested new size overflow * partial #818, avoid double free, free where the alloc happened * partial #818, fix assert logic and test exp_size for <=0 * partial #818, fix assert logic for color idx test * partial #818, new case for possible leak, improve logic * partial #818, fix assert logic for color idx test
* Bug/818 (#820)Pierre Joye2022-02-012-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Partial #818, unused arg * Partial #818, init var * partail #818, fix va_args usage * partail #818, handle f* calls and avoid possible call to malloc with negative values * partail #818, prevent double free * partail #818, resource leak if test fail * partail #818, null deref fix * partail #818, avoid double free on fp failure * Partial #818, fix error msg * Partial #818, leak on error * Partial #818, null deref * Partial #818, avoid possible negative index on failure * partial #818, does not free if we return if requested new size overflow * partial #818, avoid double free, free where the alloc happened * partial #818, fix assert logic and test exp_size for <=0 * partial #818, fix assert logic for color idx test
* Fix tests based on coverity reports (#819)Pierre Joye2022-02-0111-40/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Partial #818, unused arg * Partial #818, init var * partail #818, fix va_args usage * partail #818, handle f* calls and avoid possible call to malloc with negative values * partail #818, prevent double free * partail #818, resource leak if test fail * partail #818, null deref fix * partail #818, avoid double free on fp failure * Partial #818, fix error msg * Partial #818, leak on error * Partial #818, null deref * Partial #818, avoid possible negative index on failure * partial #818, does not free if we return if requested new size overflow * partial #818, avoid double free, free where the alloc happened
* sync ChangelogPierre Joye2022-01-311-0/+41
|
* Fix #815, gd_topal, explicit null dereferenced (kind of false positiv… (#816)Pierre Joye2022-01-311-0/+3
| | | | | * Fix #815, gd_topal, explicit null dereferenced (kind of false positive however it does hurt to add that check) * Fix #815, != NULL
* Fix #812, ensure operands priorty works as expected (#813)Pierre Joye2022-01-301-4/+4
|
* Fix #808, free info. Not sure what happens, it keeps being removed on ↵Pierre Joye2022-01-301-0/+1
| | | | cherry-pick to 2.3....
* Fix #808, free info. Not sure what happens, it keeps being removed on ↵Pierre Joye2022-01-301-0/+2
| | | | cherry-pick to 2.3....
* Fix #808, improve fix here, at this stage info is not null (deref earlier too)Pierre Joye2022-01-301-6/+2
|
* Fix #808, When RAQM is used, and it fails or no text processed, the glyph ↵Pierre Joye2022-01-301-0/+6
| | | | may be leaked
* Fix #810, Wrong image freed, src_cloned should be freed if set. (#811)Pierre Joye2022-01-291-1/+1
|
* Fix #806, getPixelInterpolateWeight, getPixelOverflowTC, getPixelOver… (#807)Pierre Joye2022-01-291-17/+10
| | | | | * Fix #806, getPixelInterpolateWeight, getPixelOverflowTC, getPixelOverflowPalette, gdImageRotate* take bgcolor as GD's truecolor, result is a TC image as well.Clean dead code. * Not needed at this stage
* Fix #808, When RAQM is used, and it fails or no text processed, the glyph ↵Pierre Joye2022-01-291-0/+3
| | | | may be leaked (#809)
* Create SECURITY.md (#775)Ziding Zhang2022-01-231-0/+5
| | | A simple instruction for security researchers.
* #797 possible leak on png error, returns from setjmp lost the row_poi… (#802)Pierre Joye2022-01-235-1/+41
| | | | | * #797 possible leak on png error, returns from setjmp lost the row_pointers ref somehow * skip that one using mingw until we have a reliable portable FP related tests suites (may never happpen)
* #792, document gdImageEllipse (#803)Pierre Joye2022-01-231-2/+21
|
* #788 fix bug in HEIF usage, stride is require (#801)Pierre Joye2022-01-225-7/+58
| | | fix bug #788 in HEIF usage, stride is require
* use current macOS naming style consistentlyMike Frysinger2021-10-308-12/+12
|
* CI: update apt databases before installMike Frysinger2021-10-211-0/+2
| | | | We did this in other workflows already, just not the coverity one.
* Catch libpng warnings (#295)woho2021-10-211-2/+7
|
* Fix out of bounds write im->alpha[im->transparent] (#785)Robert Hart2021-10-091-1/+3
| | | | | | | | | | | | | | | | | Since #737 gdImageColorTransparent does not correctly handle the case that im->transparent = -1 (which is the initial value and used to indicate no transparent colour has been set). This leads to undefined behaviour via an out-of-bound write: im->alpha[im->transparent] = gdAlphaOpaque; (in practice I assume this merely overwrites an earlier struct member) This can be triggered via loading a gif through gdImageCreateFromGifPtr third_party/gd/source/gd.c:922:2: runtime error: index -1 out of bounds for type 'int [256]' #0 0x5629c034a839 in gdImageColorTransparent third_party/gd/source/gd.c:922:29 #1 0x5629c034ebf0 in gdImageCreateFromGifCtx third_party/gd/source/gd_gif_in.c:328:4 #2 0x5629c034f14f in gdImageCreateFromGifPtr third_party/gd/source/gd_gif_in.c:186:7 Fixes #784.
* CI: enable Coverity Scan integrationMike Frysinger2021-10-051-0/+55
|
* fix help messageRemi Collet2021-10-051-1/+1
|
* CONTRIBUTING: fix typo in e-mail addressMike Frysinger2021-10-051-2/+2
|
* docs: Fix a few typosTim Gates2021-09-239-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | There are small typos in: - examples/copyrotated.c - src/gd.c - src/gd.h - src/gd_avif.c - src/gd_nnquant.c - src/gd_tga.c - src/gd_topal.c - src/wbmp.c - tests/avif/compare_avif_to_png.c Fixes: - Should read `requires` rather than `reqiures`. - Should read `of the` rather than `ofthe`. - Should read `memory` rather than `memmory`. - Should read `maximum` rather than `maxmum`. - Should read `intersection` rather than `intertersection`. - Should read `hypotenuse` rather than `hypothenus`. - Should read `flexibility` rather than `flexibilty`. - Should read `always` rather than `alwasy`. - Should read `also` rather than `alos`.
* Update issue templatesPierre Joye2021-09-201-0/+30
| | | Bug template
* sometimes I am stupid, let clean up src dirs for src packages install once ↵Pierre Joye2021-09-161-1/+13
| | | | installed and check before in case the flow failed previously before the cleanup (#774)
* add AOM dep for libavif (#771)Pierre Joye2021-09-161-4/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add AOM dep for libavif * add ninja build * add nasm * sudo ninja install * we have it installed already on aws/ubuntu graviton * we have it installed already on aws/ubuntu graviton, at the right step * install libuv and libavif * missing dav1d and update step names * 20.04 does not have dav1d * dav1d sudo ninja install * We need shared lib for all codecs * Enable AVIF in gd and enable deps on Graviton * attempt to fix prefix install for dav1d and ensure it can be loaded * ensure AOM codec is installed in /usr * ensure YUV is installed in /usr * AWS/Graviton has YUV already * aom,yuv,avif has been removed from the graviton setup, installing it like on other flows. Keep same version. * let keep AOM as it is used and installed using HEIF repo, with latest version too
* Merge pull request #769 from libgd/bug/764Pierre Joye2021-09-142-32/+8
|\ | | | | Fix #764 prevent crash in test code when AVIF encode/decode fails, fix leaks in tests
| * Fix #764 prevent crash in test code when AVIF encode/decode fails, fix ↵bug/764Pierre Joye2021-09-142-32/+8
| | | | | | | | memory leaks
* | Add notes about supported versionsPierre Joye2021-09-131-0/+6
|/