Nick Wellnhofer
2608baaf92
parser: Make failure to load main document a warning
...
Revert the change that made failures to load the main document an error.
This fixes the --path option of xmllint and xsltproc.
Should fix #733 .
2024-06-14 20:06:07 +02:00
Nick Wellnhofer
63986c45b9
parser: Report fatal error if document entity couldn't be loaded
...
Only lower error level when loading entities.
Fixes #667 .
2024-01-22 21:07:41 +01:00
Nick Wellnhofer
7e511f35f1
io: Pass error codes from xmlFileOpenReal to xmlNewInputFromFile
...
This allows to report the reason why opening a file failed to the parser
context and improve error messages. Now we can also remove the stat call
before opening a file.
2023-12-21 15:02:24 +01:00
Nick Wellnhofer
c99cde3f21
xinclude: Also test error messages
...
The reader interface with XIncludes is somewhat broken and can generate
different error messages. Start to move tests which are sketchy with
reader to a separate directory.
2022-10-23 14:26:59 +02:00
Nick Wellnhofer
f1c32b4c78
Allow missing result files in runtest
...
Treat missing files as empty.
2022-04-04 04:28:15 +02:00
Nick Wellnhofer
0f9817c75b
Don't recurse into xi:include children in xmlXIncludeDoProcess
...
Otherwise, nested xi:include nodes might result in a use-after-free
if XML_PARSE_NOXINCNODE is specified.
Found with libFuzzer and ASan.
2020-08-06 14:29:33 +02:00