|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-13 06:34 UTC] yohgaki@php.net
-Assigned To:
+Assigned To: yohgaki
[2015-09-26 08:06 UTC] stas@php.net
-Status: Assigned
+Status: Feedback
[2015-09-26 08:06 UTC] stas@php.net
[2015-09-28 09:17 UTC] yohgaki@php.net
[2015-09-28 20:09 UTC] stas@php.net
[2015-09-28 20:09 UTC] stas@php.net
-Status: Feedback
+Status: Closed
[2015-09-29 13:10 UTC] ab@php.net
[2016-07-08 12:34 UTC] jpauli@php.net
[2016-07-14 19:20 UTC] ab@php.net
[2016-07-14 19:22 UTC] ab@php.net
[2016-07-25 15:16 UTC] remi@php.net
-CVE-ID:
+CVE-ID: 2016-6288
[2016-10-17 10:11 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 08:00:02 2025 UTC |
Description: ------------ php_url_prase_ex() read buffer exceeding its limits and segfaults. PHP function parse_url() is not affected since PHP string is terminated by null char always. Patch to fix this: @@ -319,8 +320,9 @@ PHPAPI php_url *php_url_parse_ex(char const *str, size_t length) nohost: if ((p = memchr(s, '?', (ue - s)))) { - pp = strchr(s, '#'); + pp = memchr(s, '#', (ue - s)); if (pp && pp < p) { if (pp - s) { Test script: --------------- N/A This bug only appears only when php_url_prase_ex() is called internally.