[php-src] PR #25951: Fix GH-25949: BMP width above INT_MAX is published as a negative HTML attribute

From: Date: Mon, 30 Nov 2026 16:20:14 +0000
Subject: [php-src] PR #25951: Fix GH-25949: BMP width above INT_MAX is published as a negative HTML attribute
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41259@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25951 Author: lazerg biWidth in a BMP info header is a signed 32-bit value, but php_handle_bmp() stores the raw bits in an unsigned width. A width with the sign bit set (a negative width, which is invalid) was returned as e.g. 2147483649 and printed as -2147483647 in the width="..." string. Such headers are now rejected, so getimagesize() returns false. Fixes #25949

« previous php.git-pulls (#41259) next »