diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-04-10 11:18:32 +0200 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2019-04-10 10:15:20 +0000 |
commit | f67a085c9de53424a911c65e84229ac3ea616b0c (patch) | |
tree | fd7b3e0d4e526b460ee94e6ad55961ae8ea7d6dd | |
parent | 63ffb75787a1b32d6bdf79cdd61cb8b67dc85dbc (diff) |
Workaround for bug in Open62541
When cross-compiling on Winx64MSVC17 for Winx86MSVC17 the test server does
not start. There is a memcpy called with a source pointer of 0x00.
Happens in copy_noInit. The initial pointer is ok but due to the magic
pointer arithmetic the calcuation is afterwards pointing to a dereferenced
memory location that cointains a null pointer.
Actual issue happens when going into the else branch in that function.
Change-Id: I4dd78a114b1b1af88e995f4ce77aa9b87a35e4f5
Fixes: QTBUG-75020
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/open62541-testserver/open62541-testserver.pro | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/open62541-testserver/open62541-testserver.pro b/tests/open62541-testserver/open62541-testserver.pro index 5e9bb14..1d66aed 100644 --- a/tests/open62541-testserver/open62541-testserver.pro +++ b/tests/open62541-testserver/open62541-testserver.pro @@ -22,6 +22,10 @@ qtConfig(open62541):!qtConfig(system-open62541) { win32: DESTDIR = ./ +# Workaround for QTBUG-75020 +QMAKE_CFLAGS_RELEASE -= -O2 +QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2 + # This file can only be compiled in case of TLS support qtConfig(mbedtls) { # Use custom compiler from src/3rdparty/open62541.pri to hide warning caused by |