qt6-bb10/tests/auto/corelib/io
Ahmad Samir 55a8050d1e QDirIterator: don't crash with next() after hasNext() returned false
The typical use-case is calling hasNext() first before using next, but
the API docs say that calling next() even when hasNext() is false,
should just return an empty string.

[ChangeLog][QtCore][QDirIterator] Fixed a crash that happened if you
called next() after hasNext() had already returned false. Ideally you
should never call next() without first calling hasNext() as that could
lead to unexpected results (for example, infinite loops).

Fixes: QTBUG-130142
Change-Id: If0a8b1fe7dbd13b45793409a7a241e53c7257f24
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit c7691842f743f568a073582c8f0cacd6ee188f98)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-10-18 01:52:28 +00:00
..
largefile Limit size of large files test for VxWorks 2024-05-16 14:04:41 +02:00
qabstractfileengine QDirListing: add flags to handle entries filtering 2024-06-27 01:31:40 +00:00
qbuffer Change license for tests files 2024-02-04 09:56:42 +01:00
qdataurl Change license for tests files 2024-02-04 09:56:42 +01:00
qdebug QDebug: cast the QFlags value to the right-sized unsigned type (2/2) 2024-08-12 09:43:38 +00:00
qdir QDir: change qt_{cleanPath,normalizePathSegments} to returning bool 2024-09-14 16:37:12 +00:00
qdiriterator QDirIterator: don't crash with next() after hasNext() returned false 2024-10-18 01:52:28 +00:00
qdirlisting QDirListing: make end() return a sentinel 2024-09-03 18:06:32 +00:00
qfile tests: Explicitly check for pathconf(_PC_CASE_SENSITIVE) == 1 2024-09-23 19:36:53 +00:00
qfileinfo Darwin: Teach QFileSystemEngine how to resolve case-sensitivity 2024-10-02 21:36:48 +00:00
qfileselector Handle VxWorks in QFileSelector 2024-06-19 14:02:58 +00:00
qfilesystementry Change license for tests files 2024-02-04 09:56:42 +01:00
qfilesystemmetadata Change license for tests files 2024-02-04 09:56:42 +01:00
qfilesystemwatcher Fix tst_QFileSysteMWatcher::basicTest on VxWorks 2024-05-15 18:22:39 +02:00
qiodevice Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
qipaddress Change license for tests files 2024-02-04 09:56:42 +01:00
qlockfile Change license for tests files 2024-02-04 09:56:42 +01:00
qloggingcategory Change license for tests files 2024-02-04 09:56:42 +01:00
qloggingregistry Change license for tests files 2024-02-04 09:56:42 +01:00
qnodebug Change license for tests files 2024-02-04 09:56:42 +01:00
qprocess tst_QProcess: silence -Wunused-result 2024-06-18 08:09:23 +00:00
qprocess-noapplication Change license for tests files 2024-02-04 09:56:42 +01:00
qprocessenvironment Skip tst_QProcessEnvironment::systemEnvironment on VxWorks 2024-05-28 15:22:20 +02:00
qresourceengine Add copyright and licensing to .cpp and .h files missing them 2024-05-28 09:47:01 +02:00
qsavefile QSaveFile: don't reset fileEngine after commit() 2024-04-26 18:19:39 +02:00
qsettings tests: Explicitly check for pathconf(_PC_CASE_SENSITIVE) == 1 2024-09-23 19:36:53 +00:00
qstandardpaths wasm: Enable qstandardpaths test 2024-05-06 16:01:28 +02:00
qstorageinfo tst_QStorageInfo: port from qvsnprintf to std::vsnprintf() 2024-07-22 21:00:12 +00:00
qtemporarydir tst_qtemporarydir: refactor a test 2024-03-21 05:49:54 +02:00
qtemporaryfile tests: Fix tst_qtemporaryfile to use temporary file 2024-05-29 15:24:25 +03:00
qurl QUrl: Keep one trailing slash when normalizing "file:///b/." 2024-09-19 15:09:46 +00:00
qurlinternal Change license for tests files 2024-02-04 09:56:42 +01:00
qurlquery QTest: rip out qxp::function_ref from compare_helper() 2024-04-26 18:19:36 +02:00
qurluts46 QUrl IDNA: Update to Unicode 15.1 2024-02-08 17:43:58 +01:00
qzip Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tst_QSettings: port to QTEST_THROW_ON_FAIL 2024-06-27 06:06:02 +00:00