diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-10-15 14:09:55 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2018-10-18 07:40:39 +0000 |
commit | 5b39daf40d8d6dae7716b7161ee165e39ce02241 (patch) | |
tree | d101e31eb3158bf1be07566ed53aea9a3263653b /tests/auto/qml/v4misc | |
parent | 50924bd8557db9a398f3c1ccdd6996d968658b23 (diff) |
JS: Fix stack buffer overflow in the QML/JS parser
Task-number: QTBUG-71083
Change-Id: I7a06a01871c2ae0b3162699189c4e836c36d7759
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/v4misc')
-rw-r--r-- | tests/auto/qml/v4misc/tst_v4misc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/v4misc/tst_v4misc.cpp b/tests/auto/qml/v4misc/tst_v4misc.cpp index f8e76fdf5c..da7b610978 100644 --- a/tests/auto/qml/v4misc/tst_v4misc.cpp +++ b/tests/auto/qml/v4misc/tst_v4misc.cpp @@ -114,6 +114,7 @@ void tst_v4misc::parserMisc_data() QTest::newRow("for (var f in ++!binaryMathg) ;") << QString("ReferenceError: Prefix ++ operator applied to value that is not a reference."); QTest::newRow("for (va() in obj) {}") << QString("ReferenceError: Invalid left-hand side expression for 'in' expression"); QTest::newRow("[1]=7[A=8=9]") << QString("ReferenceError: left-hand side of assignment operator is not an lvalue"); + QTest::newRow("var asmvalsLen = asmvals{{{{{ngth}}}}};") << QString("SyntaxError: Expected token `;'"); } void tst_v4misc::parserMisc() |