Fix memory corruption in array handling
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Tue, 5 May 2015 08:52:34 +0000 (10:52 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Fri, 8 May 2015 04:08:16 +0000 (04:08 +0000)
commitc415e6972b371acc288cd835f5635936215c615f
tree04b7cd5aa1dc09549248f16e39c4ae28ba6c11c1
parent3b5d37ce3841c4bfdf1c629d33f0e33b881b47fb
Fix memory corruption in array handling

SimpleArrayData's markObjects() implementation did not mark the entries
correctly. When the dequeue offset was non-zero, we would end up marking values
that may have been garbage collected earlier.

Task-number: QTBUG-45888
Change-Id: Iacec350ccc76399ad4d16138af50acf22b2809db
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4arraydata.cpp