mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-03-11 08:54:48 +00:00
Also override OPENSSL_ENGINES to prevent DLL injection (#13124)
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Some checks are pending
CodeQL / Analyze (push) Waiting to run
This commit is contained in:
parent
b7ad8b4761
commit
12ef38c192
1 changed files with 2 additions and 1 deletions
|
|
@ -54,10 +54,11 @@ int main(int argc, char** argv)
|
||||||
QT_REQUIRE_VERSION(argc, argv, QT_VERSION_STR)
|
QT_REQUIRE_VERSION(argc, argv, QT_VERSION_STR)
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// Set OPENSSL_CONF and OPENSSL_MODULES to an invalid location to prevent DLL injection via openssl.cnf.
|
// Set OPENSSL_* variables to an invalid location to prevent DLL injection via openssl.cnf.
|
||||||
// vcpkg by default hard-codes this to its packages location, which may be user-writable.
|
// vcpkg by default hard-codes this to its packages location, which may be user-writable.
|
||||||
qputenv("OPENSSL_CONF", "::");
|
qputenv("OPENSSL_CONF", "::");
|
||||||
qputenv("OPENSSL_MODULES", "::");
|
qputenv("OPENSSL_MODULES", "::");
|
||||||
|
qputenv("OPENSSL_ENGINES", "::");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue