aboutsummaryrefslogtreecommitdiffstats
path: root/result
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-07-23 14:15:40 +0800
committerDaniel Veillard <veillard@redhat.com>2012-07-23 14:15:40 +0800
commit4629ee02ac649c27f9c0cf98ba017c6b5526070f (patch)
tree57346edfe46517f8cc2bd7e7779edfc18aa3b936 /result
parentbaaf03f80f817bb34c421421e6cb4d68c353ac9a (diff)
downloadandroid_external_libxml2-4629ee02ac649c27f9c0cf98ba017c6b5526070f.tar.gz
android_external_libxml2-4629ee02ac649c27f9c0cf98ba017c6b5526070f.tar.bz2
android_external_libxml2-4629ee02ac649c27f9c0cf98ba017c6b5526070f.zip
Do not fetch external parsed entities
Unless explicietely asked for when validating or replacing entities with their value. Problem pointed out by Tom Lane <tgl@redhat.com> * parser.c: do not load external parsed entities unless needed * test/errors/extparsedent.xml result/errors/extparsedent.xml*: add a regression test to avoid change of the behaviour in the future
Diffstat (limited to 'result')
-rw-r--r--result/errors/extparsedent.xml5
-rw-r--r--result/errors/extparsedent.xml.err0
-rw-r--r--result/errors/extparsedent.xml.str0
3 files changed, 5 insertions, 0 deletions
diff --git a/result/errors/extparsedent.xml b/result/errors/extparsedent.xml
new file mode 100644
index 00000000..07e4c54b
--- /dev/null
+++ b/result/errors/extparsedent.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE foo [
+<!ENTITY c PUBLIC "bar" "/etc/doesnotexist">
+]>
+<root>&c;</root>
diff --git a/result/errors/extparsedent.xml.err b/result/errors/extparsedent.xml.err
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/result/errors/extparsedent.xml.err
diff --git a/result/errors/extparsedent.xml.str b/result/errors/extparsedent.xml.str
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/result/errors/extparsedent.xml.str