0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/qt5-qtwebkit/__x86.get_pc_thunk.bx.patch
Fredrik Fornwall 352a790d2f rmpkg(x11/{qt5-qtwebkit,olivia,phantomjs,trojita,wkhtmltopdf})
QtWebKit is unmaintained and insecure with multiple remote code
execution vulnerabilities - see:
https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/
2024-10-20 12:23:45 +02:00

19 lines
508 B
Diff

--- a/Source/JavaScriptCore/jit/ThunkGenerators.cpp
+++ b/Source/JavaScriptCore/jit/ThunkGenerators.cpp
@@ -652,6 +652,15 @@
static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk;
#elif CPU(X86) && COMPILER(GCC_OR_CLANG) && OS(LINUX) && defined(__PIC__)
+#ifdef __ANDROID__
+asm(
+ ".text\n"
+ "__x86.get_pc_thunk.bx:\n"
+ " movl (%esp), %ebx\n"
+ " ret\n"
+ ".previous\n"
+);
+#endif
#define defineUnaryDoubleOpWrapper(function) \
asm( \
".text\n" \