summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhashfunctions.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-01-30 11:33:13 +0100
committerMarc Mutz <marc.mutz@qt.io>2024-02-03 08:33:28 +0100
commita327117c0d851dac4eea860e7d86ef3f80a0ffce (patch)
tree31bf2d4d10ca493c8e51957487e07c928483cb55 /src/corelib/tools/qhashfunctions.h
parent6504496c646be5ded0318fd4663945c41bb1b02f (diff)
QBitArray: defend resize() and fromBits() against negative sizes
Use the same technique the constructor already uses: Q_ASSERT followed by selecting the no-op branch in case assertions are compiled out. Pick-to: 6.7 Change-Id: I24cbcfd686f67e060134baecfb21044948b6eb98 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/tools/qhashfunctions.h')
0 files changed, 0 insertions, 0 deletions