aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index db339d71..edb142f5 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -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)