mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-27 04:55:04 +03:00
5f440d8cad
Make sure to finish all entities in the internal subset. Nevertheless, readd a sanity check in xmlParseStartTag2 that was lost in my previous commit. Also add a sanity check in xmlPopInput. Popping an input unexpectedly was the source of many recent memory bugs. The check doesn't mitigate such issues but helps with diagnosis. Always base entity boundary checks on the input ID, not the input pointer. The pointer could have been reallocated to the old address. Always throw a well-formedness error if a boundary check fails. In a few places, a validity error was thrown. Fix a few error codes and improve indentation.
21 lines
568 B
Plaintext
21 lines
568 B
Plaintext
Entity: line 1: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
|
|
|
%SYSTEM;
|
|
^
|
|
Entity: line 1:
|
|
A<lbbbbbbbbbbbbbbbbbbb_
|
|
^
|
|
./test/errors/754946.xml:4: parser error : internal error: xmlParseInternalSubset: error detected in Markup declaration
|
|
|
|
<![
|
|
^
|
|
./test/errors/754946.xml:4: parser error : DOCTYPE improperly terminated
|
|
<![
|
|
^
|
|
./test/errors/754946.xml:4: parser error : StartTag: invalid element name
|
|
<![
|
|
^
|
|
./test/errors/754946.xml:4: parser error : Extra content at the end of the document
|
|
<![
|
|
^
|