[Users] [Bug 2838] New: NULL-ptr segfault with special plugin configuration
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Sat Dec 15 22:46:36 CET 2012
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=2838
Summary: NULL-ptr segfault with special plugin configuration
Product: Claws Mail
Version: 3.9.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Plugins/ClamAV
AssignedTo: users at lists.claws-mail.org
ReportedBy: mschwendt at gmail.com
Created an attachment (id=1209)
--> (http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1209)
one basic way to fix it
Claws Mail 3.9.0, plugin clamd 3.5.5
It's possible to make Claws Mail crash always upon opening the Clamav Plugin
Preferences after having fiddled with the plugin configuration.
Steps to reproduce:
1. in clawsrc remove all entries in [ClamAV] section
2. start Claws Mail
3. Load clamd plugin, if not loaded already
4. open clamd plugin preferences, enable virus checking + set clamd.conf folder
5. so far so good ;)
6. reopen clamd plugin preferences, disable virus checking
7. unload clamd plugin
8. load clamd plugin again
9. reopen clamd plugin preferences
Crash!
And it has become impossible to revisit the clamd preferences once more, as
unloading/loading the plugin doesn't change a thing. Restarting Claws Mail
doesn't fix it either.
In that state, clawsrc contains:
[ClamAV]
clamav_enable=0
clamav_max_size=1
clamav_recv_infected=1
clamav_save_folder=#mh/Mailbox/something
clamad_config_type=1
clamd_config_folder=/etc/clamd.d/scan.conf
clamd_host=
clamd_port=0
As one can see in the plugin source code, if clamav_enable=0, it creates a NULL
clamd config ptr, which it evaluates in the plugin preferences
clamav_show_config() method.
--
Configure bugmail: http://www.thewildbeast.co.uk/claws-mail/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Users
mailing list