summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmintegration.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-01-19 18:26:17 +0100
committerMarc Mutz <marc.mutz@qt.io>2023-01-20 14:48:20 +0100
commit51e5a2376a8a2956665ff4c3a0e86c8cd9d0847d (patch)
tree7c65d0327ccfc4658f0062d457e5295970ce9102 /src/plugins/platforms/wasm/qwasmintegration.cpp
parenta375f2e2754b4f458358663ffafb009daa715b43 (diff)
QVarLengthArray: fix off-by-size() bug in growBy()
The growBy() function takes the _increment_ of the size(), so needs to add size() to increment for the call to realloc(). Add a test which hangs (vanilla build) or explodes (valgrind build) without the fix. Amends 26b227e128475da3f88a6b34921a08994bf71cf4. Done-with: Eirik Aavitsland <eirik.aavitsland@qt.io> Pick-to: 6.5 6.4 Fixes: QTBUG-110412 Change-Id: I7ea91342fdcb779825c88013a3f86ba6d90ef530 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmintegration.cpp')
0 files changed, 0 insertions, 0 deletions