#
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 ...
|
#
9405f43b |
| 23-Jun-2022 |
Christoph M. Becker |
Fix GH-8848: imagecopyresized() error refers to the wrong argument Closes GH-8849.
|
#
f6621037 |
| 25-Nov-2021 |
Remi Collet |
add missing cond.
|
#
e713890d |
| 24-Nov-2021 |
Remi Collet |
fix gdImagePngCtxEx call with system libgd
|
#
28e7addb |
| 12-May-2021 |
Flavio Heleno |
Fix #81032: GD install is affected by external libgd installation This PR replaces the bundled libgd includes from #include <foo.h> with #include "foo.h" for gd-related headers to avoid
Fix #81032: GD install is affected by external libgd installation This PR replaces the bundled libgd includes from #include <foo.h> with #include "foo.h" for gd-related headers to avoid including headers that may be available in system directories instead of the expected local headers. Closes GH-6975.
show more ...
|
#
c1743442 |
| 17-Mar-2021 |
Nikita Popov |
Return bool from imageinterlace() The function accepts a bool since PHP 8.0, so it should also return a bool to keep things consistent. Furthermore a null return from this funct
Return bool from imageinterlace() The function accepts a bool since PHP 8.0, so it should also return a bool to keep things consistent. Furthermore a null return from this functions is not possible.
show more ...
|
#
b63ea104 |
| 16-Feb-2021 |
Nikita Popov |
Mark resource-like objects as non-comparable As these hold on to some internal resource, there can't be two "equal" objects with different identity. Make sure the lack of public prop
Mark resource-like objects as non-comparable As these hold on to some internal resource, there can't be two "equal" objects with different identity. Make sure the lack of public properties doesn't result in these being treated as always equal.
show more ...
|
#
57cb01a9 |
| 09-Feb-2021 |
Nikita Popov |
Properly check imagegd() signature Unlike imagegd2(), this function only accepts two parameters, so we should be checking for that.
|
#
838ae016 |
| 09-Feb-2021 |
Nikita Popov |
Make imagegd $file parameter nullable It is explicitly documented to be nullable, and this matches other functions like imagepng. It is also documented to accept a stream, which it c
Make imagegd $file parameter nullable It is explicitly documented to be nullable, and this matches other functions like imagepng. It is also documented to accept a stream, which it currently does not...
show more ...
|
#
a89aaf6c |
| 02-Dec-2020 |
Nikita Popov |
Don't throw from imagecreatefromstring() with too short string If the string is too short, we should treat this the same way as an unrecognized image type. This function should be usable
Don't throw from imagecreatefromstring() with too short string If the string is too short, we should treat this the same way as an unrecognized image type. This function should be usable to determine whether something is a valid image without doing any checks beforehand.
show more ...
|
Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24 |
|
#
dd363934 |
| 22-Oct-2020 |
Nikita Popov |
Don't allow properties on GdImage Just like all the other former resources... we missed this case.
|
#
187efc64 |
| 14-Oct-2020 |
Nikita Popov |
Fix null foreground in imagewbmp The variable was not actually passed to zpp...
|
Revision tags: php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1 |
|
#
14a26db3 |
| 09-Oct-2020 |
Nikita Popov |
Update ext/gd parameter names Closes GH-6308.
|
#
62c6d695 |
| 01-Oct-2020 |
Nikita Popov |
Add test instantiating all objects Intended to find issues in opaque object destructors. Closes GH-6251.
|
Revision tags: php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23 |
|
#
e950ca13 |
| 20-Sep-2020 |
Máté Kocsis |
Consolidate the usage of "either" and "one of" in error messages Closes GH-6173
|
Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1 |
|
#
628db3f3 |
| 04-Sep-2020 |
Máté Kocsis |
Fix UNKNOWN default values in various extensions Closes GH-6075
|
Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22 |
|
#
4e6fbb0a |
| 19-Aug-2020 |
Máté Kocsis |
Promote warnings to exceptions in ext/gd Closes GH-6023
|
Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21 |
|
#
d94d426f |
| 31-Jul-2020 |
Máté Kocsis |
Fix the default value handling of imagegif()
|
Revision tags: php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1 |
|
#
ac0da090 |
| 18-May-2020 |
Máté Kocsis |
Fix UNKNOWN default values in ext/mbstring and ext/gd Closes GH-5598
|
#
19bf66a9 |
| 06-Jul-2020 |
Máté Kocsis |
Explode _php_image_output_ctx() into multiple functions Closes GH-5844
|
#
340e2ead |
| 11-Jul-2020 |
Christoph M. Becker |
Export php_gd_libgdimageptr_from_zval_p() Some extension may need to retrieve the `gdImagePtr` from an `GdImage` object; thus, we export the respective function. To not being forced
Export php_gd_libgdimageptr_from_zval_p() Some extension may need to retrieve the `gdImagePtr` from an `GdImage` object; thus, we export the respective function. To not being forced to include gd.h in php_gd.h, we use the opaque `struct gdImageStruct *` as return type. We also rename php_gd2.dll to php_gd.dll, since there's not really much point in giving the DLL a version number, since there is no php_gd.dll for years (if there ever has been). Renaming, on the other hand, matches the name on other systems (gd.so), and allows to actually use `ADD_EXTENSION_DEP()`.
show more ...
|
#
d30cd7d7 |
| 26-May-2020 |
Máté Kocsis |
Review the usage of apostrophes in error messages Closes GH-5590
|
#
2b5de6f8 |
| 01-Jul-2020 |
Max Semenik |
Remove proto comments from C files Closes GH-5758
|
#
92c4b065 |
| 16-Jun-2020 |
Christoph M. Becker |
Use ZEND_UNREACHABLE() instead of ZEND_ASSERT(0) Instead of marking unreachable code with `ZEND_ASSERT(0)`, we introduce `ZEND_UNREACHABLE()`, so that MSVC which does not consider `asser
Use ZEND_UNREACHABLE() instead of ZEND_ASSERT(0) Instead of marking unreachable code with `ZEND_ASSERT(0)`, we introduce `ZEND_UNREACHABLE()`, so that MSVC which does not consider `assert(0)` to mark unreachable code does no longer trigger C4715[1] warnings in debug builds. This may be useful for other compilers as well. [1] <https://docs.microsoft.com/de-de/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4715?view=vs-2019>
show more ...
|
#
2f0dcf2a |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warning in GD extension
|