Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0
-
None
-
I guess it doesn't matter, but I'm on Windows 7.
-
7fa4b8600be74c10c555ba07317e9b754f18ce3d (qtdeclarative)
Description
For example, trying to call QQmlExpression::evaluate with an expression such as abc=123 crashes, with no chance to catch an exception or check for an error code.
The following C++ code reproduces the bug:
#include <QtQml/QQmlExpression> #include <QtQml/QQmlEngine> #include <QtCore/QCoreApplication> int main(int nargs, char **args) { QCoreApplication app(nargs,args); // I know the following line is terrible, but it was just for keeping this short. QQmlExpression((new QQmlEngine())->rootContext(),new QObject(),"abc=123").evaluate(new bool()); }
Attachments
Issue Links
- relates to
-
QTBUG-40156 QQmlScriptString and QQmlExpression bug with trivial script
- Closed