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

QProcess crashes if command line arguments exceed a certain length

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.2.1
    • Core: Other
    • None
    • Windows 7, Microsoft Visual Studio 2010

    Description

      QProcess crashes when having arguments where the concatenated string exceeds a certain length.
      I have found multiple numbers for different Windows versions, see also:
      http://stackoverflow.com/questions/3205027/maximum-length-of-command-line-string

      In my case the limit is at around 10200 characters.

      Steps to reproduce:

      QProcess proc;
      proc.start("cmake.exe", QStringList(QString(10200, QChar('a')))); // OK
      proc.start("cmake.exe", QStringList(QString(10300, QChar('a')))); // crashes
      

      (this has been found out when investigating this QtCreator crash: https://bugreports.qt-project.org/browse/QTCREATORBUG-11534)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            braggpeaks Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes