php-src/ext/gd
Christoph M. Becker c1f7b87fb1
Fix MSVC C4267 warnings in gd.c (GH-17680)
These warnings are about conversion from `size_t` to a smaller type[1],
and in this case because `gdIOCtx` works with `int` lengths.  Two of
these warnings are harmless, and we resolve them by using `size_t` in
the first place, and adding a cast (plus an assertion), respectively.

The others actually hint at potential issues when reading image data
with more than `INT_MAX` bytes; we catch that upfront, and throw a
`ValueError` and a warning, respectively.

[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4267>
2025-02-03 21:02:15 +01:00
..
libgd Drop NetWare support from bundled libgd (GH-17596) 2025-01-27 20:00:34 +01:00
tests Overhaul GD test helpers and affected tests (GH-17309) 2025-01-25 19:48:38 +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 Fix MSVC C4267 warnings in gd.c (GH-17680) 2025-02-03 21:02:15 +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