-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.8.0
-
None
-
Kubuntu 16.10
I have compiled a debug version of Qt 5.8.0 from sources and I am now trying to run a working program that I ported from Windows.
On startup of the program, QCoreApplication::arguments() crashes because self->d_func()->argc returns the value of 32767, so that an invalid pointer is used in this line when the array av is overrun :
list << QString::fromLocal8Bit(av[a]);
The array av itself does correctly contain my specified parameters. Only self->d_func()->argc is incorrect.
Screenshot of my debug session in gdb is attached.
This is happening when specifying parameters. If I run the program without any parameter, it correctly calls QMessageBox::critical to announce missing parameters.
Is there a simple workaround ?