qt6-bb10/tests/auto/corelib/serialization
Giuseppe D'Angelo a2ef00ee82 QTextStream: fix UB calls to qAbs() with minimal arguments
QTextStream's operator<<(number) uses qAbs to extract the "absolute
value" of number, and passes that and the number's sign to an internal
formatting function. However qAbs is unsuitable for the task, because it
will fail if `number` is minimal, as it returns the same type of
its input.

Since we can afford to change the type of the result, call the private
qUnsignedAbs() function instead.

Change-Id: Ib813a199503f2d07c78bb76862ab2e15d68d0ec2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 8f762b546fe6b2254029c4804a32d9ae6bbf4495)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit b50f026c5586bb31d0611ca570a40e77d5e4eb43)
2025-01-29 18:51:30 +00:00
..
json Tests: suppress has_denorm deprecation 2024-09-06 14:38:21 +00:00
qcborstreamreader Fix users of static max_size() 2024-08-31 08:56:31 +00:00
qcborstreamwriter tst_QCborStreamWriter: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:29 +00:00
qcborvalue Fix users of static max_size() 2024-08-31 08:56:31 +00:00
qcborvalue_json Change license for tests files 2024-02-04 09:56:42 +01:00
qdatastream Fix test compilation issues with QtLite configuration 2024-05-06 14:29:02 +00:00
qdatastream_core_pixmap Change license for tests files 2024-02-04 09:56:42 +01:00
qtextstream QTextStream: fix UB calls to qAbs() with minimal arguments 2025-01-29 18:51:30 +00:00
qxmlstream Add REUSE.toml files 2024-11-07 08:38:49 +01:00
CMakeLists.txt tst_QCborValue: port to QTEST_THROW_ON_FAIL 2024-06-19 23:31:45 +00:00
cborlargedatavalidation.cpp Change license for tests files 2024-02-04 09:56:42 +01:00