qt5base-lts/tests/auto/corelib
Marc Mutz 572b55baa4 tst_QIODevice: fix UB (precondition violation) in SequentialReadBuffer::readData()
memcpy() mustn't be called with a nullptr, even if the size is zero.

Fixes ubsan error:

   tst_qiodevice.cpp:561:15: runtime error: null pointer passed as argument 1, which is declared to never be null

Even though ubsan only complained about one of them, fix all three
occurrences of the pattern in the test.

Pick-to: 6.3 6.2 5.15
Change-Id: I5c06ab4a20a9e9f8831392c46c6969c05248fdac
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-12-16 23:25:47 +01:00
..
animation Include qproperty.h where needed 2021-11-04 21:45:02 +01:00
global Rewrite Q_{GLOBAL,APPLICATION}_STATIC with C++17 goodies 2021-12-12 14:25:42 -08:00
io tst_QIODevice: fix UB (precondition violation) in SequentialReadBuffer::readData() 2021-12-16 23:25:47 +01:00
itemmodels Use QAbstractItemModelTester in all QSortFilterProxyModel tests 2021-12-14 14:11:26 +01:00
kernel Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
mimetypes Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin QNX: check and use elf.h from alternative location 2021-11-30 14:37:52 +02:00
serialization Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
text tst_QByteArray: fix UB (signed overflow) 2021-12-16 23:25:47 +01:00
thread QtFuture::connect: exclude QPrivateSignal from the resulting future type 2021-12-11 21:47:17 +00:00
time Skip QTimeZone::checkOffset() if there are no valid zones to test 2021-11-26 02:14:52 +01:00
tools Fix autotest runtime failures on INTEGRITY 2021-12-16 19:45:08 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00