[php-src] PR #21861: Fix GH-21738: undefined behavior in url_decode with non-ASCII bytes

From: Date: Fri, 24 Apr 2026 10:20:36 +0000
Subject: [php-src] PR #21861: Fix GH-21738: undefined behavior in url_decode with non-ASCII bytes
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35879@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21861 Author: lacatoire Cast the byte to unsigned char before passing it to isxdigit() in php_url_decode_ex and php_raw_url_decode_ex. <ctype.h> functions require their argument to be representable as unsigned char (0-255) or EOF; passing a sign-extended char for high-bit bytes like \x80 is undefined behavior. Fixes GH-21738

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