summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-02-16 08:42:27 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-03-10 17:10:58 +0100
commita4ed7c4506a49b07c3e760810cfd5fba28beefab (patch)
tree79648e3021abd4e38fb186cbc9ea0bb454604b55 /dist
parent8e50178e020aa5fa9ae5baba31e493db4c20faa9 (diff)
downloadqtbase-a4ed7c4506a49b07c3e760810cfd5fba28beefab.tar.gz
QVarLengthArray: fix UBs in insert(it, n, v) ([basic.life], invariants)
In the same vein as e24df8bc726d12e80f3f1d14834f9305586fcc98 for emplace(it, v) and insert(it, rv), this patch addresses the identical issues in insert(it, n, v). The solution is unsurprisingly the same: q_rotate() after a resize(size() + n, v). The 6.2- code will need to look different, because resize(n, v) didn't exist there. Change-Id: I1ce91969abc20f2a1e5d05a8545b009a2e0994f6 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit fed5f2445480f7cf045e93761dc902f771cbf3da) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions