mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Don't try to access memory outside string
This commit is contained in:
parent
5a8622fe78
commit
2119ba215a
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ static int _php_filter_validate_domain(char * domain, size_t len, zend_long flag
|
|||
t = e - 1;
|
||||
|
||||
/* Ignore trailing dot */
|
||||
if (*t == '.') {
|
||||
if (l > 0 && *t == '.') {
|
||||
e = t;
|
||||
l--;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue