Commit Graph

2472 Commits (0f9dd9627aa9f5095164a73e84905bb4af4bfc8f)

Author SHA1 Message Date
Mike Frysinger 0f9dd9627a use current macOS naming style consistently 2021-10-30 13:49:21 -04:00
Mike Frysinger b614af3f6f CI: update apt databases before install
We did this in other workflows already, just not the coverity one.
2021-10-21 18:28:42 -04:00
woho 636100b928 Catch libpng warnings (#295) 2021-10-21 12:02:29 -04:00
Robert Hart ba14dec6ef
Fix out of bounds write im->alpha[im->transparent] (#785)
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.
2021-10-09 11:40:45 -04:00
Mike Frysinger dceb29a6f5 CI: enable Coverity Scan integration 2021-10-05 08:24:39 -04:00
Remi Collet 4f88530baa fix help message 2021-10-05 00:27:16 -04:00
Mike Frysinger 712ebc445e CONTRIBUTING: fix typo in e-mail address 2021-10-05 00:21:51 -04:00
Tim Gates f7e57be725 docs: Fix a few typos
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`.
2021-09-23 01:13:40 -04:00
Pierre Joye 826e546256 Update issue templates
Bug template
2021-09-20 10:28:19 +07:00
Pierre Joye de9b5eb943
sometimes I am stupid, let clean up src dirs for src packages install once installed and check before in case the flow failed previously before the cleanup (#774) 2021-09-16 22:55:52 +07:00
Pierre Joye 27e99a0e8f
add AOM dep for libavif (#771)
* 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
2021-09-16 20:22:42 +07:00
Pierre Joye bdb133fefd
Merge pull request #769 from libgd/bug/764
Fix #764 prevent crash in test code when AVIF encode/decode fails, fix leaks in tests
2021-09-14 20:03:36 +07:00
Pierre Joye aed7181690 Fix #764 prevent crash in test code when AVIF encode/decode fails, fix memory leaks 2021-09-14 04:39:31 +07:00
Pierre Joye e89be76eba
Add notes about supported versions 2021-09-13 10:32:09 +07:00
Pierre Joye efffd21c36 Merge from 2.3 2021-09-11 23:38:22 +07:00
Pierre Joye efbf48317f add them too and enforce lf, so I don't mess it up again 2021-09-11 11:41:03 +07:00
Pierre Joye 0c2172d933 Enable these workflows for GD-* branches 2021-09-11 11:34:14 +07:00
Mike Frysinger dbc310fca7 cleanup Windows CRLF line endlings 2021-09-11 12:48:02 -04:00
Pierre Joye ba15dd03f4
Not used anymore 2021-09-11 14:31:59 +07:00
Pierre Joye 62e3113e31
Delete tmp directory
added by error during conflict  merge
2021-09-11 14:31:00 +07:00
Pierre Joye d99d021b50 generate and use config.h from/to build dir (github user LRFLEW) 2021-09-10 05:08:53 +07:00
Pierre Joye 02f5a7ae05 merge conflict 2021-09-10 04:57:22 +07:00
Pierre Joye 8074c82046 fix warning 2021-09-10 04:51:57 +07:00
Pierre Joye 6f5136821b
Merge pull request #755 from libgd/bug/750
Partial fix for #750, BMP and WebP. Gif's usage of PutBuf needs too much refactoring for the actual gain here."
2021-09-08 10:08:12 +07:00
Pierre Joye 75fecefe77 <3 the CI, forgot header for gd_error and unused var, strict mode for the win :) 2021-09-07 22:10:26 +07:00
Pierre Joye e5c84f0b7a Partial fix for #750 2021-09-07 22:03:21 +07:00
Arun 16ebd800f7 Fixed typo 2021-09-06 08:29:50 -04:00
Christoph M. Becker beb18188a2
Stricter typing in test case
This avoids the compiler complaining about a pointer to int conversion.
2021-09-05 16:07:39 +02:00
Pierre Joye 86886fd880
Fix unicode symbols 2021-09-04 19:20:51 +07:00
Pierre Joye 98a0e9ba67
Update README.md 2021-09-04 19:19:32 +07:00
Pierre Joye c80a7bf3ff Merge branch 'master' of github.com:libgd/libgd 2021-09-04 18:29:29 +07:00
Pierre Joye ae7c6b263a small additions and remove old things 2021-09-04 18:28:54 +07:00
Pierre Joye cb4ec5affe
Merge pull request #748 from libgd/bug/320
Fix #320, should not convert the source to palette
2021-09-02 20:09:44 +07:00
Pierre Joye ef7de619a3 Fix #128, min libjpeg and jpeg-turbo supported 2021-09-02 11:04:33 +07:00
Pierre Joye c8381fd779 useless comments 2021-09-02 10:43:12 +07:00
Pierre Joye 5f9f4fa36c oops, forgot to enable for master 2021-09-02 10:42:26 +07:00
Pierre Joye 6d5274a1b3 fix name > MacOS 2021-09-02 10:29:58 +07:00
Pierre Joye 226bfed859 add compilers section 2021-09-01 14:33:33 +07:00
Pierre Joye 7d4ae26e2e List platforms, with or without CI and comments about other 2021-09-01 14:31:36 +07:00
Pierre Joye 4a0d7d86f0 Fix #320, should not convert the source to palette 2021-09-01 14:05:56 +07:00
Pierre Joye 88a407780d Merge branch 'master' of github.com:libgd/libgd 2021-09-01 09:46:29 +07:00
Pierre Joye 6402cdf87e
Merge pull request #747 from libgd/features/mingw-ci
Rewrite CI to use Github Actions and improve builds. Platform:
- Ubuntu 20.04, gcc, x64 and ARM64 (graviton2)
- Ubuntu 20.04, clang, x64 and ARM64 (graviton2)
- Windows, x64, x86, arm64 VC
- Windows, mingw, x64, x86, ucrt64
- MacOS, x64 xcode

See docs/README_CI.md for additional details.
2021-09-01 10:21:20 +07:00
Pierre Joye f6ee6fb79d Docs for CI 2021-09-01 09:44:30 +07:00
Pierre Joye cbdcd95f21 basic docs about CI 2021-09-01 08:40:13 +07:00
Pierre Joye 6831b404f3 mv 2021-09-01 08:36:07 +07:00
Pierre Joye 6c494b5da3 rename to _mingw 2021-09-01 08:34:50 +07:00
Pierre Joye 9251cd60d0
Merge pull request #736 from libgd/bug/415
Fix #415, Assuming TopOfs and LeftOfs zero, we can safely skip any (x…
2021-08-31 18:48:20 +07:00
Pierre Joye 3ec453691e whoever thought inventing a language in yaml needs a life...8 2021-08-31 14:52:25 +07:00
Pierre Joye 91d1669c7d whoever thought inventing a language in yaml needs a life...#7 2021-08-31 14:51:24 +07:00
Pierre Joye aa887967f5 whoever thought inventing a language in yaml needs a life...#6 pls kill me 2021-08-31 14:47:13 +07:00