[php-src] PR #22174: ext/phar: harden OpenSSL signature handling in util.c.
| From: | devnexen | Date: | Thu, 28 May 2026 20:40:10 +0000 |
| Subject: | [php-src] PR #22174: ext/phar: harden OpenSSL signature handling in util.c. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36251@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22174
Author: devnexen
Use size_t in phar_hex_str to avoid signed integer overflow when hex-encoding an attacker-controlled
signature length, and fail verification in phar_call_openssl_verify when the stream read is short
rather than proceeding over a truncated buffer.