[php-src] master: Fix Ipv6 and ipvfuture address validation to use PHP's built-in memory manager (#22571)
Máté Kocsis via GitHub <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Máté Kocsis (kocsismate) Committer: GitHub (web-flow) Pusher: kocsismate Date: 2026-07-03T14:34:11+02:00 Commit: https://github.com/php/php-src/commit/4999bcb29cbf1da7eb90365f0eb8cab416b8778a Raw diff: https://github.com/php/php-src/commit/4999bcb29cbf1da7eb90365f0eb8cab416b8778a.diff Fix Ipv6 and ipvfuture address validation to use PHP's built-in memory manager (#22571) Co-authored-by: Tim Düsterhus <[email protected]> Changed paths: M ext/uri/uri_parser_rfc3986.c Diff: diff --git a/ext/uri/uri_parser_rfc3986.c b/ext/uri/uri_parser_rfc3986.c index 88201914d593..f4f5f2bf5bd9 100644 --- a/ext/uri/uri_parser_rfc3986.c +++ b/ext/uri/uri_parser_rfc3986.c @@ -737,13 +737,13 @@ ZEND_ATTRIBUTE_NONNULL zend_result php_uri_parser_rfc3986_validate_host(const ze if (len >= 2 && (p[1] == 'v' || p[1] == 'V')) { return php_uri_parser_rfc3986_validate_component_result( - uriIsWellFormedHostIpFutureA(p + 1, p + len - 1) == URI_SUCCESS, + uriIsWellFormedHostIpFutureMmA(p + 1, p + len - 1, mm) == URI_SUCCESS, "host" ); } return php_uri_parser_rfc3986_validate_component_result( - uriIsWellFormedHostIp6A(p + 1, p + len - 1) == URI_SUCCESS, + uriIsWellFormedHostIp6MmA(p + 1, p + len - 1, mm) == URI_SUCCESS, "host" ); }