Merge pull request #3914

372a591 main: disable setting -platformpluginpath (selsta)
This commit is contained in:
luigi1111 2022-06-09 13:57:36 -05:00
commit c4bebbf173
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -206,6 +206,13 @@ int main(int argc, char *argv[])
qputenv("QML_DISABLE_DISK_CACHE", "1"); qputenv("QML_DISABLE_DISK_CACHE", "1");
for (int i = 0; i < argc; i++) {
if (QString(argv[i]).contains("platformpluginpath")) {
qCritical() << "Setting -platformpluginpath as an argument is disabled"; // CVE-2021-3401
return 1;
}
}
MainApp app(argc, argv); MainApp app(argc, argv);
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)