diff options
author | Stanislav Malyshev <stas@php.net> | 2016-06-28 01:22:55 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-06-28 01:23:24 -0700 |
commit | 0ac51448368162efb62c188acb98924f8b05c3e9 (patch) | |
tree | cdcd50855ab30cb1caa334ef60e17d752c036456 /ext/xml | |
parent | b8a9e9816678e051d279ec687be423079c9ccdd4 (diff) | |
download | php-git-0ac51448368162efb62c188acb98924f8b05c3e9.tar.gz |
Fix bug #72099: xml_parse_into_struct segmentation fault
Diffstat (limited to 'ext/xml')
-rw-r--r-- | ext/xml/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index bf497b2d7c..72f629ba2c 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -918,7 +918,7 @@ void _xml_characterDataHandler(void *userData, const XML_Char *s, int len) break; } ZEND_HASH_FOREACH_END(); - if (parser->level <= XML_MAXLEVEL) { + if (parser->level <= XML_MAXLEVEL && parser->level > 0) { array_init(&tag); _xml_add_to_info(parser,parser->ltags[parser->level-1] + parser->toffset); |