[Users] [Bug 3857] New: crash when setting a wrong host
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Fri Aug 4 10:24:20 CEST 2017
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3857
Bug ID: 3857
Summary: crash when setting a wrong host
Classification: Unclassified
Product: Claws Mail
Version: 3.15.0
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P3
Component: Plugins/Clamd
Assignee: users at lists.claws-mail.org
Reporter: jiazhouyang09 at gmail.com
Created attachment 1774
-->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1774&action=edit
fix the crash by adding error handling code to gethostbyname
The program will crash when setting a wrong host.
Steps to reproduce:
1. Load the plugin.
Configuration -> Plugins -> Load -> clams.so -> Open -> Close
2. Set a wrong host name.
Configuration -> Preferences -> Plugins -> Clam AntiVirus -> check Enable virus
scanning -> uncheck Automatic configuration -> Remote Host: WrongHost -> Port:
10010 -> Apply
The reason is that there is no error handling code after calling function
"gethostbyname".
The following patch will solve this problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list