[php-src] PR #22416: ext/gd: pack imageloadfont short-read test in native byte order

From: Date: Tue, 23 Jun 2026 15:13:27 +0000
Subject: [php-src] PR #22416: ext/gd: pack imageloadfont short-read test in native byte order
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36574@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22416 Author: iliaal The imageloadfont_short_read test packed the font header with pack('V4', ...) (little-endian), but imageloadfont() reads it as native-endian ints, so on big-endian hosts the byte-swapped values trip the INT_MAX overflow guard before the FLIPWORD fallback and the font is rejected. Packing with pack('i4', ...) keeps the header valid on both, fixing the PPC64 nightly failure.

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