qt5base-lts/tests/auto/corelib/io
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
..
largefile QNX: Limit maximum largefile size 2021-12-12 13:12:01 +02:00
qabstractfileengine QAbstractFileEngine: Add permission argument to open() 2021-12-04 01:27:08 +01:00
qbuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdataurl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdir QNX: Skip failing test 2021-12-12 11:12:19 +00:00
qdiriterator Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qfile QFile: Add open() overload that accepts permissions argument 2021-12-04 01:27:11 +01:00
qfileinfo QNX: Successful check depends on user running test 2021-12-12 11:11:36 +00:00
qfileselector QFileSelector: Preserve path to root directory 2021-07-21 19:37:16 +02:00
qfilesystementry CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qfilesystemmetadata Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfilesystemwatcher QNX: inotify is supported, so enable tests 2021-12-12 11:12:31 +00:00
qiodevice tst_QIODevice: fix UB (precondition violation) in SequentialReadBuffer::readData() 2021-12-16 23:25:47 +01:00
qipaddress Disable security warnings from MSVC in tests 2021-03-17 17:22:00 +01:00
qlockfile Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qloggingcategory Remove the qmake project files 2021-01-07 15:32:28 +01:00
qloggingregistry Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qnodebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocess QNX: Cannot handle threads in given time 2021-12-12 13:12:39 +02:00
qprocess-noapplication Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocessenvironment QProcess: Distinguish between null and empty QProcessEnvironment 2021-11-07 01:53:44 +01:00
qresourceengine Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
qsavefile QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qsettings Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qstandardpaths Fix autotest public API compilation for INTEGRITY 2021-10-15 11:00:25 +03:00
qstorageinfo Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtemporarydir QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qtemporaryfile QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
qurl Workaround MSVC 2022 bug about QString::replace 2021-11-10 14:10:20 +01:00
qurlinternal tst_qurl{,internal}: Use U+FB01 for normalization to ASCII test cases 2021-08-25 00:13:39 +02:00
qurlquery tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qurluts46 Update UCD to Revision 28 2021-10-18 16:45:10 +00:00
CMakeLists.txt QNX: Remove not supported testcase 2021-12-12 11:12:11 +00:00