kc3-lang/libxml2/test/XInclude

Branch :


Log

Author Commit Date CI Message
322e733b 2024-07-18 19:27:43 xinclude: Fix fallback for text includes Fixes #772.
1dd5e76a 2024-06-17 21:06:46 xinclude: Don't remove root element Don't replace include element at root with empty nodeset.
52ce0d70 2024-06-17 17:35:12 tests: Add XInclude test for issue #733
6e3a2ac6 2023-12-22 21:38:50 xinclude: Rework xml:base fixup The xml:base fixup was broken in more complex cases. Also avoid parsing and building the included URI multiple times.
e20f4d7a 2023-02-13 14:38:05 xinclude: Fix quadratic behavior in xmlXIncludeLoadTxt Also make text inclusions work with memory buffers, for example when using a custom entity loader, and fix a memory leak in case of invalid characters. Fixes #483.
b456e3bb 2022-10-30 20:28:20 xinclude: Always allow XPtr expressions in external documents
eef0a739 2022-10-30 12:21:20 xinclude: Implement "streaming" mode When using xmlreader, XPointer expressions in XIncludes simply cannot work. Expressions can reference nodes which weren't parsed yet or which were already deleted. After fixing nested XIncludes, we reference includes which were parsed previously. When streaming, these nodes could have been deleted, leading to use-after-free errors. Disallow XPointer expressions and truncate the include table in streaming mode.
20e2fb4c 2022-10-23 17:52:29 xinclude: Avoid creation of subcontexts Don't create subcontext in xmlXIncludeRecurseDoc. Save and restore 'doc' and 'incTab' instead. Make xmlXIncludeLoadFallback call xmlXIncludeCopyNode which seems safer than xmlXIncludeDoProcess since the latter may modify the document. This should also be more performant since we need to copy the whole fallback subtree anyway. Also make sure to avoid replacements in fallback elements in xmlXIncludeDoProcess.
d2ed1e4f 2022-10-22 16:50:18 xinclude: Limit recursion depth This avoids call stack overflows.
34496f26 2022-10-22 16:09:21 xinclude: Test for inclusion loops