Skip to content

Commit 629e4da

Browse files
committed
Fix bug #70480 (php_url_parse_ex() buffer overflow read)
1 parent 59de2c0 commit 629e4da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/url.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
320320
nohost:
321321

322322
if ((p = memchr(s, '?', (ue - s)))) {
323-
pp = strchr(s, '#');
323+
pp = memchr(s, '#', (ue - s));
324324

325325
if (pp && pp < p) {
326326
if (pp - s) {

0 commit comments

Comments
 (0)