-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable STDIN listening when not needed #1906
Disable STDIN listening when not needed #1906
Conversation
Is this not meant to cover Windows? Looks like it only applies to non-Windows hosts. |
Yes, this is only with platforms that can use QSocketNotifier with STDIN. |
@@ -77,6 +77,11 @@ void NativeMessagingHost::run() | |||
QString serverPath = getLocalServerPath(); | |||
QFile::remove(serverPath); | |||
|
|||
// Ensure that STDIN is not being listened when proxy is used | |||
if (m_notifier->isEnabled()) { | |||
m_notifier->setEnabled(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be handled by the base class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a precaution. It handles a situation where proxy has been disabled but is enabled again.
- Enable high entropy ASLR on Windows [#1747] - Enhance favicon fetching [#1786] - Fix crash on Windows due to autotype [#1691] - Fix dark tray icon changing all icons [#1680] - Fix --pw-stdin not using getPassword function [#1686] - Fix placeholders being resolved in notes [#1907] - Enable auto-type start delay to be configurable [#1908] - Browser: Fix native messaging reply size [#1719] - Browser: Increase maximum buffer size [#1720] - Browser: Enhance usability and functionality [#1810, #1822, #1830, #1884, #1906] - SSH Agent: Parse aes-256-cbc/ctr keys [#1682] - SSH Agent: Enhance usability and functionality [#1677, #1679, #1681, #1787]
STDIN is being listened even if the browser integration is disabled.
Description
Enables the listening by default for keepassxc-proxy, but for KeePassXC the STDIN will be listened only if proxy is disabled.
Motivation and context
Fixes #1574.
How has this been tested?
Manually.
Types of changes
Checklist:
-DWITH_ASAN=ON
. [REQUIRED]