Parser not halting early enough from a "Double hyphen within comment" error
Hi there, If the error handler calls xmlStopParser for the above error, the parser doesn't actually stop immediately, but rather keeps running through the out while loop and scanning from a now freed buffer.
Seems to have a straight forward resolution, as per the attached patch. 0001-fix-parser-termination-from-Double-hyphen-within-com.patch.
Found in https://github.com/GNOME/libxml2 checkout 4150f8a2. (I'm working on some yet to be released Perl 6 bindings (https://github.com/p6-xml/LibXML-p6).
Edited by Ghost User