mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-21 20:56:19 +00:00
352a790d2f
QtWebKit is unmaintained and insecure with multiple remote code execution vulnerabilities - see: https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/
29 lines
885 B
Diff
29 lines
885 B
Diff
--- a/Source/WebCore/xml/XSLTProcessor.h
|
|
+++ b/Source/WebCore/xml/XSLTProcessor.h
|
|
@@ -64,7 +64,11 @@
|
|
|
|
void reset();
|
|
|
|
+#if LIBXML_VERSION >= 21200
|
|
+ static void parseErrorFunc(void* userData, const xmlError*);
|
|
+#else
|
|
static void parseErrorFunc(void* userData, xmlError*);
|
|
+#endif
|
|
static void genericErrorFunc(void* userData, const char* msg, ...);
|
|
|
|
// Only for libXSLT callbacks
|
|
--- a/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
|
|
+++ b/Source/WebCore/xml/XSLTProcessorLibxslt.cpp
|
|
@@ -78,7 +78,11 @@
|
|
// It would be nice to do something with this error message.
|
|
}
|
|
|
|
+#if LIBXML_VERSION >= 21200
|
|
+void XSLTProcessor::parseErrorFunc(void* userData, const xmlError* error)
|
|
+#else
|
|
void XSLTProcessor::parseErrorFunc(void* userData, xmlError* error)
|
|
+#endif
|
|
{
|
|
PageConsoleClient* console = static_cast<PageConsoleClient*>(userData);
|
|
if (!console)
|