1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

Fix error handling in Saxon extension functions

The old code could lead to a NULL pointer dereference.

- Set XPath error if saxon:expression can't compile an expression.
- Check return value in saxon:eval.

Add first tests for Saxon extension functions.

Found with afl-fuzz and ASan.
This commit is contained in:
Nick Wellnhofer
2016-04-26 15:36:48 +02:00
parent d8862309f0
commit ef7429bb4f
16 changed files with 138 additions and 4 deletions

View File

@ -68,6 +68,9 @@ runtests("tests/exslt/functions")
print("## Running exslt math tests")
runtests("tests/exslt/math")
print("## Running exslt saxon tests")
runtests("tests/exslt/saxon")
print("## Running exslt sets tests")
runtests("tests/exslt/sets")