1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext
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
..
2025-01-29 19:25:05 +09:00
2024-11-17 12:28:12 +00:00
2025-01-17 11:53:13 +00:00
2024-12-06 19:02:22 +01:00
2024-12-20 18:52:43 +01:00
2025-01-30 11:41:00 -04:00
2024-12-18 11:39:06 +00:00
2025-01-03 12:31:13 +01:00
2024-11-10 20:35:04 +00:00
2024-12-06 17:44:01 +01:00
2025-02-02 13:39:13 +01:00
2025-01-19 20:39:27 +01:00
2024-11-27 23:06:34 +01:00
2025-02-03 19:38:04 +01:00
2025-01-15 20:37:19 +00:00
2025-01-26 19:15:36 +00:00
2025-01-28 12:59:31 +01:00
2024-12-30 12:42:24 -04:00
2025-01-24 14:10:12 +00:00
2025-01-09 19:54:52 +01:00
2024-12-27 15:54:37 +01:00
2025-01-21 08:21:27 +01:00