diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-02-07 14:37:19 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-02-07 14:37:19 +0000 |
commit | 4d282a674f4e1bf23c3cb866878e7ab5987f2f42 (patch) | |
tree | 248b1a9e223f7d93bfd8d6407da3b970489af18e /tests/documents | |
parent | 319e987b003289a5d5c25b9713f73d02522ee5b2 (diff) | |
download | libxslt-4d282a674f4e1bf23c3cb866878e7ab5987f2f42.tar.gz libxslt-4d282a674f4e1bf23c3cb866878e7ab5987f2f42.tar.bz2 libxslt-4d282a674f4e1bf23c3cb866878e7ab5987f2f42.zip |
fixing a segfault in document(), bug #105418 add the specific test as
* libxslt/functions.c: fixing a segfault in document(), bug #105418
* tests/documents/Makefile.am tests/documents/test_bad: add the
specific test as suggested by Jean T Anderson
Daniel
Diffstat (limited to 'tests/documents')
-rw-r--r-- | tests/documents/Makefile.am | 5 | ||||
-rw-r--r-- | tests/documents/test_bad.err | 2 | ||||
-rw-r--r-- | tests/documents/test_bad.result | 3 | ||||
-rw-r--r-- | tests/documents/test_bad.xml | 5 |
4 files changed, 15 insertions, 0 deletions
diff --git a/tests/documents/Makefile.am b/tests/documents/Makefile.am index 3c89e2b5..539fe9fc 100644 --- a/tests/documents/Makefile.am +++ b/tests/documents/Makefile.am @@ -26,6 +26,11 @@ test tests: $(top_builddir)/xsltproc/xsltproc diff $(srcdir)/test.result result; \ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ rm -f result) + @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/test.xsl $(srcdir)/test_bad.xml > result 2>err ; \ + diff $(srcdir)/test_bad.result result; \ + diff $(srcdir)/test_bad.err err; \ + grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ + rm -f result err) @($(CHECKER) $(top_builddir)/xsltproc/xsltproc $(srcdir)/message.xsl $(srcdir)/message.xml > result 2>&1 ; \ diff $(srcdir)/message.result result; \ grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0" || true;\ diff --git a/tests/documents/test_bad.err b/tests/documents/test_bad.err new file mode 100644 index 00000000..52e8b02c --- /dev/null +++ b/tests/documents/test_bad.err @@ -0,0 +1,2 @@ +warning: failed to load external entity "foofile.xml" +warning: failed to load external entity "foo_file.xml" diff --git a/tests/documents/test_bad.result b/tests/documents/test_bad.result new file mode 100644 index 00000000..b28b04f6 --- /dev/null +++ b/tests/documents/test_bad.result @@ -0,0 +1,3 @@ + + + diff --git a/tests/documents/test_bad.xml b/tests/documents/test_bad.xml new file mode 100644 index 00000000..fb5aa174 --- /dev/null +++ b/tests/documents/test_bad.xml @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<files> +<file name="foofile.xml"/> +<file name="foo%5Ffile.xml"/> +</files> |