History log of /PHP-8.4/ext/gd/gd.c (Results 1 – 25 of 734)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f2859a40 09-Oct-2024 David Carlier

Fix GH-16322: imageaffine overflow on affine argument.

close GH-16334


# 9b64d321 09-Oct-2024 Christoph M. Becker

Revert "Fix GH-16322: overflow on imageaffine matrix argument."

This reverts commit 05114265fbb112793ddf6de953c31ad0cbb2c1d2, since it
apparently has been pushed inadvertently (see PR #1

Revert "Fix GH-16322: overflow on imageaffine matrix argument."

This reverts commit 05114265fbb112793ddf6de953c31ad0cbb2c1d2, since it
apparently has been pushed inadvertently (see PR #16334).

show more ...


# 93a2fe8a 09-Oct-2024 David Carlier

Revert "Fix GH-16322: overflow on imageaffine matrix argument."

This reverts commit 05114265fbb112793ddf6de953c31ad0cbb2c1d2.


# 05114265 09-Oct-2024 David Carlier

Fix GH-16322: overflow on imageaffine matrix argument.


# 2d05da2e 06-Oct-2024 David Carlier

Fix GH-16260: overflow/underflow on imagerotate degrees argument.

close GH-16264


# 5853cdb7 20-Aug-2024 Gina Peter Bnayard

Use "must not" instead of "cannot" wording


# e7c4d54d 18-Aug-2024 Gina Peter Bnayard

Use new helper function for "cannot be empty" ValueErrors


# 93c3ebd2 09-Jul-2024 David CARLIER

ext/gd minor corrections concerning image format id for errors. (#14887)


# 23a55bab 18-Jun-2024 David Carlier

ext/gd: checking imagescale/imagefilter invalid values.

close GH-14598


# 11accb5c 25-Jun-2024 Arnaud Le Blanc

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Preferably include from build dir (#13516)

* Include from build dir first

This fixes out of tree builds by ensuring that configure artifacts are included
from the build dir.

Before, out of tree builds would preferably include files from the src dir, as
the include path was defined as follows (ignoring includes from ext/ and sapi/) :

-I$(top_builddir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/main
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM
-I$(top_builddir)/

As a result, an out of tree build would include configure artifacts such as
`main/php_config.h` from the src dir.

After this change, the include path is defined as follows:

-I$(top_builddir)/main
-I$(top_builddir)
-I$(top_srcdir)/main
-I$(top_srcdir)
-I$(top_builddir)/TSRM
-I$(top_builddir)/Zend
-I$(top_srcdir)/Zend
-I$(top_srcdir)/TSRM

* Fix extension include path for out of tree builds

* Include config.h with the brackets form

`#include "config.h"` searches in the directory containing the including-file
before any other include path. This can include the wrong config.h when building
out of tree and a config.h exists in the source tree.

Using `#include <config.h>` uses exclusively the include path, and gives
priority to the build dir.

show more ...


# 1fc083e5 16-Jun-2024 David CARLIER

ext/gd: iamgeresolution checks overflow. (#14585)


# 592d8994 13-Jun-2024 Giovanni Giacobbi

ext/gd: de-factorize image output functions (#14523)

The image output functions imagegif/imagepng/imagewebp/imageavif/imagejpeg
were all calling the static function _php_image_output_ctx

ext/gd: de-factorize image output functions (#14523)

The image output functions imagegif/imagepng/imagewebp/imageavif/imagejpeg
were all calling the static function _php_image_output_ctx which was basically
a big switch statement between each image type which also have different
parameters.

The only identical part was the call to create_stream_context_from_zval that
is now merged with create_output_context.

show more ...


# 1ae54433 11-Jun-2024 David CARLIER

ext/gd using fast ZPP. (#14534)


# 7b2ca071 05-Jun-2024 David Carlier

ext/gd: imagewebp/imageavif/imagepng/imagejpeg stricter checks quality/speed.

close GH-14485


# da769be7 05-Jun-2024 Giovanni Giacobbi

Fix parameter numbers for imagecolorset()

This is the 8.2 & 8.3 version of GH-14477.


# 44cbdb10 05-Jun-2024 Giovanni Giacobbi

Fix parameter numbers and missing alpha check for imagecolorset()

The check for the alpha parameter existed in PHP 7.4 but was lost in PHP 8.0.

Fixes: 50765075db6b6d5a9597589601c59f

Fix parameter numbers and missing alpha check for imagecolorset()

The check for the alpha parameter existed in PHP 7.4 but was lost in PHP 8.0.

Fixes: 50765075db6b6d5a9597589601c59f743f6ee9c8

Closes GH-14477.

show more ...


# df85c255 13-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Follow-up fix for GH-13082

The font_obj should actually be NULL initialised, not the font gd
pointer.

Closes GH-13139.


# 97267215 10-Jan-2024 David CARLIER

general signatures discrepencies fixes (#13122)


# 1e464e5b 09-Jan-2024 David Carlier

ext/gd: Fix GH-13082

Issue occur when compiling with recent clang releases (> 13) and
with the '-Os' optimisation level, after using
`imageloadfont` which returns a proper GdFont cl

ext/gd: Fix GH-13082

Issue occur when compiling with recent clang releases (> 13) and
with the '-Os' optimisation level, after using
`imageloadfont` which returns a proper GdFont class leads to
a subtle bug when attempting to use via the imagefont* function.

show more ...


# b0d8c10f 11-Jun-2023 David CARLIER

ext/gd: imagerotate removes ignore_transparent argument.

seems to be a relic of PHP 5 but no longer makes sense in regard of gdImageRotateInterpolated.

Close GH-11426


# 10117821 23-Feb-2023 Máté Kocsis

Declare proper parameter default values for imagegd2 (#10569)


# 7936c808 23-Jan-2023 Máté Kocsis

Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)


# 58d741c0 08-Jan-2023 Niels <7771979+nielsdos@users.noreply.github.com>

Remove unnecessary NULL-checks on ctx (#10256)

ctx can never be zero in these functions because they are dispatched
virtually by looking up their entries in ctx. Furthermore, 2 of these

Remove unnecessary NULL-checks on ctx (#10256)

ctx can never be zero in these functions because they are dispatched
virtually by looking up their entries in ctx. Furthermore, 2 of these
checks never actually worked because ctx was dereferenced before ctx was
NULL-checked.

show more ...


# d50532be 18-Oct-2022 Christoph M. Becker

Fix #81739: OOB read due to insufficient validation in imageloadfont()

If we swap the byte order of the relevant header bytes, we need to make
sure again that the following multiplicatio

Fix #81739: OOB read due to insufficient validation in imageloadfont()

If we swap the byte order of the relevant header bytes, we need to make
sure again that the following multiplication does not overflow.

show more ...


# a01dd9fe 14-Sep-2022 Bob Weinand

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included i

Revert "Port all internally used classes to use default_object_handlers"

This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a.

The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.

show more ...


12345678910>>...30