Commit 400aa844a68 for php.net

commit 400aa844a686cdc93d7fa281191caba85a9563b1
Merge: f39ae2fc67a 2c2852ae8ea
Author: David Carlier <devnexen@gmail.com>
Date:   Thu Dec 4 23:16:08 2025 +0000

    Merge branch 'PHP-8.4' into PHP-8.5

    * PHP-8.4:
      Fix GH-20622: imagestring/imagestringup overflow/underflow.

diff --cc ext/gd/gd.c
index 5a5d51d19c0,16e871f6bc3..35c1b8b50a7
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@@ -2976,8 -3023,8 +2976,9 @@@ static void php_imagechar(INTERNAL_FUNC
  	zend_long X, Y, COL;
  	zend_string *C;
  	gdImagePtr im;
- 	int ch = 0, col, x, y, i;
+ 	int ch = 0, col, i, l = 0;
+ 	unsigned int x, y;
 +	size_t l = 0;
  	unsigned char *str = NULL;
  	zend_object *font_obj = NULL;
  	zend_long font_int = 0;