Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-73999

QJSEngine::evaluate running oom and crashing

    XMLWordPrintable

    Details

    • Commits:
      b959074afb43d25c1a8818e0528004f8cf073ae2 (qt/qtdeclarative/5.12)

      Description

      1. 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;
        }
        
      1. Build it on Qt 5.12.1.
      2. Run the program passing the attached input file as parameter: .5.toString(5)
        The program runs out of memory and crashes.

        Attachments

        1. evaluate-cli.zip
          0.6 kB
        2. QTBUG-73999.js
          0.0 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              ulherman Ulf Hermann
              Reporter:
              rlohning Robert Löhning
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes