[php-src] PR #25138: Fix GH-25137: Reject malformed SNMP ports
| From: | somethingwithproof | Date: | Sun, 01 Nov 2026 20:58:30 +0000 |
| Subject: | [php-src] PR #25138: Fix GH-25137: Reject malformed SNMP ports | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40203@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25138
Author: somethingwithproof
Fixes #25137.
Require the complete remote-port suffix to contain decimal digits and fit in
the existing
0..65535 range. This prevents empty, nonnumeric, and partially
numeric suffixes from being silently accepted by atoi().
The regression covers IPv4 and bracketed IPv6 hostnames, both valid range
boundaries, and the procedural and OO APIs.
Verification: debug ZTS build with ASan and UBSan; focused PHPT passed (1/1).