Qt 6.8.3 with BlackBerry 10 (QNX 8 / ARMv7) patches
 
 
 
 
 
 
Go to file
Marc Mutz 19aeb431cf QMainWindowLayout: rewrite validateToolBarArea() to return by value
Coverity complains that QToolBarAreaLayout's
addToolBarBreak(QInternal::DockPosition) could access
QToolBarAreaLayout::docks out of bounds if passed
QInternal::DockCount.

That is correct, but a valid pos seems to be a precondition for this
function, judging from its sister functions, e.g.
addToolBar(DockPosition, .) or insertItem(DockPosition, .), which also
don't validate `pos`. All in-module callers of addToolBarBreak() only
pass valid positions, and use validateToolBarArea() to ensure that. So
it seems that Coverity doesn't grok the pass-by-in/out -parameter used
by that function. That, or it doesn't track back far enough.

Before attempting more drastic measures, first try rewriting the
function to return-by-value instead, and see what Coverity has to say
afterwards.

As a drive-by, make validateToolBarArea() constexpr.

Pick-to: 6.7 6.6 6.5 6.2 5.15
Coverity-Id: 444141
Coverity-Id: 444135
Change-Id: I5fcc664c3cea608429036cad75c37f5c38059733
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2024-03-26 11:26:24 +01:00
.github/workflows Repair github action workflow 2021-11-10 18:57:33 +01:00
LICENSES Use canonical capitalization of Unicode-3.0 SPDX tag 2024-03-13 14:43:10 +00:00
bin cmake: Override generator for iOS projects to Xcode in qt-cmake.in 2024-03-18 22:34:48 +01:00
cmake Move QtInstallPaths.cmake to the Qt6 package 2024-03-22 15:31:40 +01:00
coin CMake: Allow configuring a minimal subset of examples to deploy 2024-03-19 18:22:16 +01:00
config.tests Correct license in config.test 2024-02-20 16:22:28 +01:00
dist Remove dist/README 2024-02-29 15:35:57 +01:00
doc Doc: Replace obsolete <acronym> with <abbr> html tags 2024-03-22 16:28:12 +01:00
examples Android: add core-private to use private permissions API 2024-03-25 10:49:44 +02:00
lib
libexec CMake: Allow building all examples as standalone just like tests 2024-03-14 11:44:16 +01:00
mkspecs iOS: Remove unneeded default_post.prf file 2024-03-22 00:04:20 +01:00
qmake Port to QDirListing 2024-03-03 14:02:07 +02:00
src QMainWindowLayout: rewrite validateToolBarArea() to return by value 2024-03-26 11:26:24 +01:00
tests QTextMarkdownWriter: escape all backslashes 2024-03-26 00:47:37 -07:00
util cmake: Rename QT_UIKIT_SDK to QT_APPLE_SDK 2024-03-18 19:04:14 +01:00
.cmake.conf Remove year from generic Qt copyright information 2024-02-14 09:30:07 +00:00
.gitattributes Give batch files CRLF line endings 2020-11-04 15:02:29 +00:00
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml Skip LGTM analysis for the bootstrap library and tools 2020-07-16 01:04:34 +02:00
.tag
CMakeLists.txt CMake: Move most of CMakeLists.txt into QtBaseHelpers.cmake 2024-03-14 11:44:16 +01:00
config_help.txt Add hardening build options 2024-03-19 02:52:43 +01:00
configure Change configure license 2024-02-02 15:23:02 +00:00
configure.bat configure.bat: Fix errors on Windows 2024-03-05 11:56:24 +01:00
configure.cmake VxWorks: Skip fstack-protector-strong 2024-03-25 17:09:11 +01:00
dependencies.yaml Re-add dependencies.yaml now that qt5.git wip/qt6 builds fine 2019-09-18 13:19:31 +02:00
licenseRule.json Add a licenseRule.json file for checking of SPDX license identifiers 2024-03-07 11:08:18 +01:00
qt_cmdline.cmake Fix the command line options for the hardening features 2024-03-20 15:24:07 +01:00