diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-04-10 11:18:32 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2020-10-27 08:01:01 +0000 |
commit | a718a44c796b8805fc208035cd743de1efd7e7d4 (patch) | |
tree | 86830bfae3096bbcac54e43e07ea07c67564efa6 | |
parent | 404fb90b7f272059bf05c73c882ab6a84471150d (diff) |
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
Fixes: QTBUG-87701
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
(cherry picked from commit f67a085c9de53424a911c65e84229ac3ea616b0c)
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-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 68a0069..607e6b7 100644 --- a/tests/open62541-testserver/open62541-testserver.pro +++ b/tests/open62541-testserver/open62541-testserver.pro @@ -18,6 +18,10 @@ qtConfig(open62541):!qtConfig(system-open62541) { win32: DESTDIR = ./ +# Workaround for QTBUG-75020 +QMAKE_CFLAGS_RELEASE -= -O2 +QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2 + SOURCES += \ main.cpp \ testserver.cpp \ |