Skip to content

qv4function: Fix crash due to reference being invalidated

Function::updateInternalClass creates a reference to a QStringList that is appended to before being used. This is unsafe and can leads to a segfault if the append() causes a reallocation.

Fixes: QTBUG-94360 Pick-to: 5.15 6.1 6.2 Change-Id: Iac49e8d816cf440ca2b70e133c88314eb8df6b91 Reviewed-by: Fabian Kosmale Reviewed-by: Andrei Golubev (cherry picked from commit 7fa28f98)

Merge request reports