#299 ✓released
Luke Le

Entering an invalid keyserver value with newlines causes a crash or misbehavior

Reported by Luke Le | December 5th, 2014 @ 11:27 PM | in 1.2b3 (closed)

If an invalid value is entered in the keyserver field in GPG Keychain preferences, it's possible that the value causes a crash or misbehavior of the application. In addition, the invalid value is stored as the new keyserver in gpg.conf

Steps to reproduce:

1.) Open preferences in GPG Keychain
2.) Enter the following value for example (or any other value with a new line)


3.) See GPG Keychain go crazy due to an invalid gpg.conf

To fix this, configuration settings written to gpg.conf are first sanitized by removing newline (\n) characters, to avoid this issue al together and the keyserver is no longer stored unless the keyserver check reports it actually works.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket