mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fix buffer overrun & segfault in get_meta_tags() when there is no tag value
This commit is contained in:
parent
e6f64862c1
commit
01b996b98b
@ -432,7 +432,7 @@ PHP_FUNCTION(get_meta_tags)
|
||||
if (have_content) {
|
||||
add_assoc_string(return_value, name, value, 0);
|
||||
} else {
|
||||
add_assoc_string(return_value, name, "", 0);
|
||||
add_assoc_string(return_value, name, "", 1);
|
||||
}
|
||||
|
||||
efree(name);
|
||||
|
Loading…
Reference in New Issue
Block a user