1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00
libxml2/result/errors
Nick Wellnhofer 4fefba4cf6 parser: Rework handling of undeclared entities
Throw an error if entity substitution was requested.

Now we only downgrade to a warning if

- XML_PARSE_DTDLOAD wasn't specified, and
- entity aren't substituted or XML_PARSE_NO_XXE was specified.

Should fix #724.
2024-05-15 17:58:48 +02:00
..
754946.xml.ent parser: Pop inputs if parsing DTD failed 2024-01-10 15:58:23 +01:00
754946.xml.err parser: Pop inputs if parsing DTD failed 2024-01-10 15:58:23 +01:00
754946.xml.str parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
754947.xml.ent parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
754947.xml.err parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
754947.xml.str parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
758588.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
758588.xml.err Bug 758588: Heap-based buffer overread in xmlParserPrintFileContextInternal <https://bugzilla.gnome.org/show_bug.cgi?id=758588> 2016-05-23 15:01:07 +08:00
758588.xml.str Bug 758588: Heap-based buffer overread in xmlParserPrintFileContextInternal <https://bugzilla.gnome.org/show_bug.cgi?id=758588> 2016-05-23 15:01:07 +08:00
759020.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
759020.xml.err Heap use-after-free in xmlSAX2AttributeNs 2016-05-23 15:01:07 +08:00
759020.xml.str Heap use-after-free in xmlSAX2AttributeNs 2016-05-23 15:01:07 +08:00
759398.xml.ent parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
759398.xml.err parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
759398.xml.str parser: Improve error handling in push parser 2023-08-29 18:41:05 +02:00
759573-2.xml.ent parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759573-2.xml.err parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759573-2.xml.str parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759573.xml.ent parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759573.xml.err parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759573.xml.str parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
759579.xml.ent parser: Improve detection of entity loops 2022-12-23 22:11:18 +01:00
759579.xml.err parser: Improve detection of entity loops 2022-12-23 22:11:18 +01:00
759579.xml.str parser: Improve detection of entity loops 2022-12-23 22:11:18 +01:00
attr1.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
attr1.xml.err Avoid reparsing in xmlParseStartTag2 2017-06-01 14:31:28 +02:00
attr1.xml.str fix from Steve Ball and update of the comment. William pointed out that 2004-06-14 19:58:20 +00:00
attr2.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
attr2.xml.err Avoid reparsing in xmlParseStartTag2 2017-06-01 14:31:28 +02:00
attr2.xml.str fix from Steve Ball and update of the comment. William pointed out that 2004-06-14 19:58:20 +00:00
attr3.xml fixed problem with free on dupl attribute in dtd (bug309637). added 2005-07-06 22:48:41 +00:00
attr3.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
attr3.xml.err fixed problem with free on dupl attribute in dtd (bug309637). added 2005-07-06 22:48:41 +00:00
attr3.xml.str fixed problem with free on dupl attribute in dtd (bug309637). added 2005-07-06 22:48:41 +00:00
attr4.xml.ent parser: Rework parsing of attribute and entity values 2024-01-02 15:42:03 +01:00
attr4.xml.err parser: Rework parsing of attribute and entity values 2024-01-02 15:42:03 +01:00
attr4.xml.str parser: Rework parsing of attribute and entity values 2024-01-02 15:42:03 +01:00
attr5.xml.ent tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
attr5.xml.err tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
attr5.xml.str tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
attr6.xml.ent tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
attr6.xml.err tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
attr6.xml.str tests: Add more tests for redefined attributes 2023-09-29 12:43:08 +02:00
cdata.xml.ent parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
cdata.xml.err parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
cdata.xml.str parser: Remove xmlErrEncoding 2023-12-21 15:02:24 +01:00
charref1.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
charref1.xml.err Fix unsigned integer overflow 2019-05-20 13:38:22 +02:00
charref1.xml.str Fix unsigned integer overflow 2019-05-20 13:38:22 +02:00
comment1.xml.ent parser: Pop inputs if parsing DTD failed 2024-01-10 15:58:23 +01:00
comment1.xml.err parser: Pop inputs if parsing DTD failed 2024-01-10 15:58:23 +01:00
comment1.xml.str fixed a parser bug where invalid char in comment may not be detected, 2007-08-01 07:49:06 +00:00
content1.xml.ent parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
content1.xml.err parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
content1.xml.str parser: Convert some "internal errors" to meaningful codes 2024-01-02 19:48:23 +01:00
dup-xml-attr.xml.ent parser: Fix detection of duplicate attributes in XML namespace 2024-03-12 20:02:52 +01:00
dup-xml-attr.xml.err parser: Fix detection of duplicate attributes in XML namespace 2024-03-12 20:02:52 +01:00
dup-xml-attr.xml.str parser: Fix detection of duplicate attributes in XML namespace 2024-03-12 20:02:52 +01:00
empty.xml.ent parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
empty.xml.err parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
empty.xml.str parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
ent_redecl.xml Only warn on invalid redeclarations of predefined entities 2022-02-20 21:49:04 +01:00
ent_redecl.xml.ent SAX2: Report malloc failures 2023-12-11 22:13:05 +01:00
ent_redecl.xml.err SAX2: Report malloc failures 2023-12-11 22:13:05 +01:00
ent_redecl.xml.str SAX2: Report malloc failures 2023-12-11 22:13:05 +01:00
extparsedent.xml Do not fetch external parsed entities 2012-07-23 14:15:40 +08:00
extparsedent.xml.ent parser: Rework general entity parsing 2023-12-25 23:38:40 +01:00
extra-content.xml.ent parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
extra-content.xml.err parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
extra-content.xml.str parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-1.xml.ent parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-1.xml.err parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-1.xml.str parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-2.xml.ent parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-2.xml.err parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
invalid-start-tag-2.xml.str parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
issue151.xml.ent Fix double counting of CRLF in comments 2022-02-07 20:54:07 +01:00
issue151.xml.err Fix double counting of CRLF in comments 2022-02-07 20:54:07 +01:00
issue151.xml.str Fix double counting of CRLF in comments 2022-02-07 20:54:07 +01:00
name2.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
name2.xml.err Spelling and grammar fixes 2017-06-17 16:34:23 +02:00
name2.xml.str Spelling and grammar fixes 2017-06-17 16:34:23 +02:00
name3.xml.ent parser: Make CRLF increment line number 2023-11-26 15:18:09 +01:00
name3.xml.err parser: Make CRLF increment line number 2023-11-26 15:18:09 +01:00
name3.xml.str parser: Make CRLF increment line number 2023-11-26 15:18:09 +01:00
name.xml.ent Enable error tests with entity substitution 2020-02-11 17:36:43 +01:00
name.xml.err fix the patch for unreproductable #343000 but also fix a line/column 2006-10-15 20:32:53 +00:00
name.xml.str fix from Steve Ball and update of the comment. William pointed out that 2004-06-14 19:58:20 +00:00
ns-ent.xml parser: Fix general entity parsing 2023-12-28 16:47:41 +01:00
ns-ent.xml.ent parser: Push general entity input streams on the stack 2023-12-29 01:20:08 +01:00
ns-ent.xml.err parser: Push general entity input streams on the stack 2023-12-29 01:20:08 +01:00
ns-ent.xml.str parser: Push general entity input streams on the stack 2023-12-29 01:20:08 +01:00
ns-undeclared.xml parser: Avoid duplicate namespace errors 2024-01-05 20:39:40 +01:00
ns-undeclared.xml.ent parser: Avoid duplicate namespace errors 2024-01-05 20:39:40 +01:00
ns-undeclared.xml.err parser: Avoid duplicate namespace errors 2024-01-05 20:39:40 +01:00
ns-undeclared.xml.str parser: Avoid duplicate namespace errors 2024-01-05 20:39:40 +01:00
quadratic-defattr.xml.ent parser: Protect against quadratic default attribute expansion 2023-10-06 12:47:24 +02:00
quadratic-defattr.xml.err parser: Protect against quadratic default attribute expansion 2023-10-06 12:47:24 +02:00
quadratic-defattr.xml.str parser: Protect against quadratic default attribute expansion 2023-10-06 12:47:24 +02:00
rec_att_default.xml.ent parser: Rework handling of undeclared entities 2024-05-15 17:58:48 +02:00
rec_att_default.xml.err parser: Consolidate error handling for undeclared entities 2024-04-23 18:36:15 +02:00
rec_att_default.xml.str parser: Consolidate error handling for undeclared entities 2024-04-23 18:36:15 +02:00
rec_ext_ent.xml Add test case for recursive external parsed entities 2020-02-11 17:36:43 +01:00
rec_ext_ent.xml.ent parser: Only report a single entity error 2022-12-23 22:10:39 +01:00
trailing-null-1.xml.ent parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
trailing-null-1.xml.err parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
trailing-null-1.xml.str parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
trailing-null-2.xml.ent parser: Remove xmlErrEncodingInt 2024-01-04 15:28:57 +01:00
trailing-null-2.xml.err parser: Remove xmlErrEncodingInt 2024-01-04 15:28:57 +01:00
trailing-null-2.xml.str parser: Remove xmlErrEncodingInt 2024-01-04 15:28:57 +01:00
truncated-utf16.xml.ent parser: Check for truncated multi-byte sequences 2023-08-08 15:21:37 +02:00
truncated-utf16.xml.err parser: Check for truncated multi-byte sequences 2023-08-08 15:21:37 +02:00
truncated-utf16.xml.str parser: Check for truncated multi-byte sequences 2023-08-08 15:21:37 +02:00
unclosed-element.xml.ent parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
unclosed-element.xml.err parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
unclosed-element.xml.str parser: More fixes to push parser error handling 2023-08-29 20:06:43 +02:00
utf8-1.xml.ent parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
utf8-1.xml.err parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
utf8-1.xml.str error: Make sure that error messages are valid UTF-8 2022-12-04 23:34:19 +01:00
utf8-2.xml.ent parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
utf8-2.xml.err parser: Fix detection of null bytes 2023-08-29 18:43:10 +02:00
utf8-2.xml.str error: Make sure that error messages are valid UTF-8 2022-12-04 23:34:19 +01:00