mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-19 16:13:55 +02:00
main: disable setting -platformpluginpath
This commit is contained in:
parent
2e2ae5c88f
commit
372a591ac7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user