From 16ca5eab9bdd31774dc8e657f217e044640eecff Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 15 Feb 2018 15:39:01 +0100 Subject: Fix crash when changing from a simple to a sparse array After that change, if we ran out of slots in the freeList, the last entry would point to the first Value in the value array, not indicating that we ran out of free slots. Task-number: QTBUG-65828 Change-Id: I3e57bb7a0c2dc29172a485a6ea957b6ab5ac962e --- src/qml/jsruntime/qv4sparsearray_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4sparsearray_p.h') diff --git a/src/qml/jsruntime/qv4sparsearray_p.h b/src/qml/jsruntime/qv4sparsearray_p.h index 6dca1e1a34..ca6abcda89 100644 --- a/src/qml/jsruntime/qv4sparsearray_p.h +++ b/src/qml/jsruntime/qv4sparsearray_p.h @@ -151,7 +151,7 @@ struct Q_QML_EXPORT SparseArray SparseArray(const SparseArray &other); - ReturnedValue freeList = 0; + ReturnedValue freeList; private: SparseArray &operator=(const SparseArray &other); -- cgit v1.2.3