Browse Source

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

PHP-5.1
Antony Dovgal 22 years ago
parent
commit
01b996b98b
  1. 2
      ext/standard/file.c

2
ext/standard/file.c

@ -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…
Cancel
Save