mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
libxslt: revision bump to address open CVEs
- Add patches copied from Debian to address open CVEs - Update mail address of maintainer - Fix a typo - Add --disable-silent-rules for verbose build output Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
||||
Date: Mon, 1 Jul 2013 13:10:10 +0000
|
||||
Subject: EXSLT function str:replace() is broken as-is
|
||||
|
||||
the str:replace() function is no longer usable without a transform
|
||||
context. I take it from the bug report that it is not supposed to be used
|
||||
from plain XPath but only from XSLT according to the EXSLT specification.
|
||||
|
||||
However, the previous implementation used to work in XPath and is still
|
||||
registered on an xmlXPathContext by the exsltStrXpathCtxtRegister()
|
||||
function. When called from plain XPath, it results in a memory error in
|
||||
line 526 (exsltStrReturnString()) of strings.c because xsltCreateRVT()
|
||||
returns NULL as an error indicator due to a NULL transform context being
|
||||
passed in, which was the return value from xsltXPathGetTransformContext() a
|
||||
bit further up (and the code doesn't validate that).
|
||||
|
||||
Since fixing the function looks impossible, best is to remove it.
|
||||
---
|
||||
libexslt/strings.c | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/libexslt/strings.c b/libexslt/strings.c
|
||||
index 045cc14..c0c7a18 100644
|
||||
--- a/libexslt/strings.c
|
||||
+++ b/libexslt/strings.c
|
||||
@@ -838,11 +838,7 @@ exsltStrXpathCtxtRegister (xmlXPathContextPtr ctxt, const xmlChar *prefix)
|
||||
&& !xmlXPathRegisterFuncNS(ctxt,
|
||||
(const xmlChar *) "concat",
|
||||
(const xmlChar *) EXSLT_STRINGS_NAMESPACE,
|
||||
- exsltStrConcatFunction)
|
||||
- && !xmlXPathRegisterFuncNS(ctxt,
|
||||
- (const xmlChar *) "replace",
|
||||
- (const xmlChar *) EXSLT_STRINGS_NAMESPACE,
|
||||
- exsltStrReplaceFunction)) {
|
||||
+ exsltStrConcatFunction)) {
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
Reference in New Issue
Block a user