Fixing issue 906 (#912)

* Fixing issue 906

* Safe patching.

* Now with explanations.

* Bumping up memory allocation.

* Putting the patch back.

* fallback fixes.

Co-authored-by: Daniel Lemire <lemire@gmai.com>
This commit is contained in:
Daniel Lemire
2020-06-05 15:37:09 -04:00
committed by GitHub
parent 351717414d
commit 7a69da16e4
9 changed files with 66 additions and 5 deletions
@@ -102,6 +102,8 @@ namespace westmere {
WARN_UNUSED error_code dom_parser_implementation::parse(const uint8_t *_buf, size_t _len, dom::document &_doc) noexcept {
error_code err = stage1(_buf, _len, false);
if (err) { return err; }
err = check_for_unclosed_array();
if (err) { return err; }
return stage2(_doc);
}