summaryrefslogtreecommitdiff
path: root/test/XInclude
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-10-30 12:21:20 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-10-30 14:12:55 +0100
commiteef0a7395cf623c9063a161e7107fa53b235ba98 (patch)
treecca149b0f16d4ae18cb9aca5a7e7ccc2e2d1e77c /test/XInclude
parent7e078cc1fe122fcf994df8408999deaf470ba2af (diff)
downloadlibxml2-eef0a7395cf623c9063a161e7107fa53b235ba98.tar.gz
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.
Diffstat (limited to 'test/XInclude')
-rw-r--r--test/XInclude/without-reader/coalesce.xml (renamed from test/XInclude/docs/coalesce.xml)0
-rw-r--r--test/XInclude/without-reader/nodes.xml (renamed from test/XInclude/docs/nodes.xml)0
-rw-r--r--test/XInclude/without-reader/nodes2.xml (renamed from test/XInclude/docs/nodes2.xml)0
-rw-r--r--test/XInclude/without-reader/nodes3.xml (renamed from test/XInclude/docs/nodes3.xml)0
-rw-r--r--test/XInclude/without-reader/red.xml (renamed from test/XInclude/docs/red.xml)0
5 files changed, 0 insertions, 0 deletions
diff --git a/test/XInclude/docs/coalesce.xml b/test/XInclude/without-reader/coalesce.xml
index 33d5cb64..33d5cb64 100644
--- a/test/XInclude/docs/coalesce.xml
+++ b/test/XInclude/without-reader/coalesce.xml
diff --git a/test/XInclude/docs/nodes.xml b/test/XInclude/without-reader/nodes.xml
index d0ccab99..d0ccab99 100644
--- a/test/XInclude/docs/nodes.xml
+++ b/test/XInclude/without-reader/nodes.xml
diff --git a/test/XInclude/docs/nodes2.xml b/test/XInclude/without-reader/nodes2.xml
index 32f8cfe8..32f8cfe8 100644
--- a/test/XInclude/docs/nodes2.xml
+++ b/test/XInclude/without-reader/nodes2.xml
diff --git a/test/XInclude/docs/nodes3.xml b/test/XInclude/without-reader/nodes3.xml
index 355c5488..355c5488 100644
--- a/test/XInclude/docs/nodes3.xml
+++ b/test/XInclude/without-reader/nodes3.xml
diff --git a/test/XInclude/docs/red.xml b/test/XInclude/without-reader/red.xml
index 75ee396d..75ee396d 100644
--- a/test/XInclude/docs/red.xml
+++ b/test/XInclude/without-reader/red.xml