php-src/ext/gd
Christoph M. Becker 2c49f52b0d
Port "improve _gdImageFillTiled() internal function" (GH-17356)
This improvement was done for libgd 2.1.0[1], and the erroneous
calculation has been fixed as of libgd 2.2.0[2].

While we're at it we also add the overflow checks of external libgd;
these are not really necessary, since `.sx * .sy` overflow was already
prevented when the image has been created, and since we're using
`safe_emalloc()` the `struct seg` overflow is also prevented.  It
should be noted that `overflow2()` prevents `int` overflow, while
`safe_emalloc()` prevents `size_t` overflow, so the former is more
restrictive.  For parity with external libgd, this still appears to be
a good thing.

[1] <86a5debede>
[2] <e87ec88e1c>
2025-01-07 01:23:05 +01:00
..
libgd Port "improve _gdImageFillTiled() internal function" (GH-17356) 2025-01-07 01:23:05 +01:00
tests Merge branch 'PHP-8.4' 2025-01-06 20:39:14 +01:00
config.m4 Port "move pixelate filter to gd_filter.c" (sync with upstream) (GH-17361) 2025-01-05 11:24:24 +01:00
config.w32 Port "move pixelate filter to gd_filter.c" (sync with upstream) (GH-17361) 2025-01-05 11:24:24 +01:00
CREDITS
gd.c Merge branch 'PHP-8.4' 2024-12-16 19:46:21 +01:00
gd.stub.php ext/gd: imagerotate removes ignore_transparent argument. 2023-06-19 12:32:08 +01:00
gd_arginfo.h Generated arginfo header files: combine preprocessor conditional blocks (#15736) 2024-09-04 13:04:22 +02:00
gd_compat.c Preferably include from build dir (#13516) 2024-06-26 00:26:43 +02:00
gd_compat.h
php_gd.h Declare ext/gd constants in stubs (#9180) 2022-07-30 15:18:06 +02:00