fix buffer overrun & segfault in get_meta_tags() when there is no tag value

This commit is contained in:
Antony Dovgal 2004-12-10 10:30:01 +00:00
parent e6f64862c1
commit 01b996b98b

View File

@ -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);