Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.2.1
-
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)