-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 5.12.1, 5.13.0 Alpha 1, 5.14
-
Fix Version/s: 5.12.3, 5.13.1, 5.14.0 Alpha
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Environment:Manjaro Linux
clang 7.0.1
gcc 8.2.1
-
Commits:b959074afb43d25c1a8818e0528004f8cf073ae2 (qt/qtdeclarative/5.12)
- Have a simple program running QJSEngine::evaluate (evaluate-cli.zip
).
#include <QCoreApplication> #include <QFile> #include <QJSEngine> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); if (argc < 2) return -1; QFile inFile(argv[1]); inFile.open(QFile::ReadOnly); QJSEngine().evaluate(inFile.readAll()); return 0; }
- Build it on Qt 5.12.1.
- Run the program passing the attached input file
as parameter: .5.toString(5)
The program runs out of memory and crashes.