Fix out of bounds array index in the generated JIT code
authorLars Knoll <lars.knoll@digia.com>
Mon, 11 Nov 2013 14:08:41 +0000 (15:08 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 12 Nov 2013 17:20:30 +0000 (18:20 +0100)
commit7c6d2d78fe0997dfebba5569f097bdacbba5a861
treec3b9d08d2249cd21f7a9bf7df9fe2d5fc850b3fb
parent12086835ddce3554af1dc472377543bd1471faa9
Fix out of bounds array index in the generated JIT code

When converting a double to int, make sure we check for >= 0
before using it, otherwise we get out of bounds accesses.

Task-number: QTBUG-34635
Change-Id: If72e116c08fe1dff03cd88ce510cf8b96d249b92
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
src/qml/compiler/qv4isel_masm.cpp