mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Merge pull request #3914
372a591
main: disable setting -platformpluginpath (selsta)
This commit is contained in:
commit
c4bebbf173
1 changed files with 7 additions and 0 deletions
|
@ -206,6 +206,13 @@ int main(int argc, char *argv[])
|
|||
|
||||
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);
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
|
|
Loading…
Reference in a new issue