diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2023-02-16 08:42:27 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2023-02-21 19:56:07 +0100 |
| commit | fed5f2445480f7cf045e93761dc902f771cbf3da (patch) | |
| tree | 9ad2bd464a8d942bfa710d9b2919ed355a25fb3b /src/plugins/platforms/wasm/qwasmdom.cpp | |
| parent | 147dd6e82f41778060bdadf9b2a792bd11e1bc1e (diff) | |
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.
Pick-to: 6.5 6.4 6.2 5.15
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>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmdom.cpp')
0 files changed, 0 insertions, 0 deletions
