diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-02-13 14:38:05 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-02-14 12:25:07 +0100 |
commit | e20f4d7a656e47553f9da9d594e299e2fa2dbe41 (patch) | |
tree | 7bacf4c73707b9c8f2bb965ed795055dd53e542b /result | |
parent | a96312db516b7ad9fb9a12560a680fa6d3fc3d9f (diff) | |
download | libxml2-e20f4d7a656e47553f9da9d594e299e2fa2dbe41.tar.gz |
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.
Diffstat (limited to 'result')
-rw-r--r-- | result/XInclude/invalid_char.xml.err | 2 | ||||
-rw-r--r-- | result/XInclude/invalid_char.xml.rdr | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/result/XInclude/invalid_char.xml.err b/result/XInclude/invalid_char.xml.err new file mode 100644 index 00000000..c28c1095 --- /dev/null +++ b/result/XInclude/invalid_char.xml.err @@ -0,0 +1,2 @@ +./test/XInclude/docs/invalid_char.xml:2: element include: XInclude error : test/XInclude/ents/invalid_char.txt contains invalid char +./test/XInclude/docs/invalid_char.xml:2: element include: XInclude error : could not load test/XInclude/ents/invalid_char.txt, and no fallback was found diff --git a/result/XInclude/invalid_char.xml.rdr b/result/XInclude/invalid_char.xml.rdr new file mode 100644 index 00000000..1fb57744 --- /dev/null +++ b/result/XInclude/invalid_char.xml.rdr @@ -0,0 +1,7 @@ +0 1 x 0 0 +1 14 #text 0 1 + +1 1 xinclude:include 1 0 +1 14 #text 0 1 + +0 15 x 0 0 |