History log of /PHP-8.2/ext/gd/gd.c (Results 1 – 25 of 724)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 4124b04e 13-Nov-2024 David Carlier

Fix GH-16771: imagecreatefromstring overflow on invalid format.

close GH-16776


# f2859a40 09-Oct-2024 David Carlier

Fix GH-16322: imageaffine overflow on affine argument.

close GH-16334


# 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


# da769be7 05-Jun-2024 Giovanni Giacobbi

Fix parameter numbers for imagecolorset()

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


# 97267215 10-Jan-2024 David CARLIER

general signatures discrepencies fixes (#13122)


# 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 ...


# 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.


# 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 ...


# 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 ...


# 1ad59b32 30-Aug-2022 George Peter Banyard

Update INI validator and displayers depending on INI type

Closes GH-9451


# 94ee4f98 24-Aug-2022 Bob Weinand

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


# 056e968c 30-Jul-2022 Máté Kocsis

Declare ext/gd constants in stubs (#9180)


# 9405f43b 23-Jun-2022 Christoph M. Becker

Fix GH-8848: imagecopyresized() error refers to the wrong argument

Closes GH-8849.


# 54f1f8cf 25-Nov-2021 Remi Collet

add missing conditions


# 1241ec8c 25-Nov-2021 Remi Collet

fix [-Wstrict-prototypes] build warnings in ext/gd


# f566cba0 25-Nov-2021 Remi Collet

fix [-Wstrict-prototypes] build warnings in ext/gd


# f6621037 25-Nov-2021 Remi Collet

add missing cond.


# e713890d 24-Nov-2021 Remi Collet

fix gdImagePngCtxEx call with system libgd


# 90b7bde6 03-Nov-2021 Dmitry Stogov

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[i]
instead of ht->arData[i]
- in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar
familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes
(ZEND_HASH_MAP_FOREACH_*)
- introduced an additional family of macros to access elements of array
(packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX,
ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT
- zend_hash_minmax() prototype was changed to compare only values

Because of smaller data set, this patch may show performance improvement
on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser)

TODO:
- sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET).
- zend_hash_sort_ex() may require converting packed arrays to hash.

show more ...


12345678910>>...29