[Users] [Bug 3402] Claws Mail randomly segfaults with invalid pointer free() in slist_free_strings_full at utils.c:261

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Thu Mar 24 10:14:04 CET 2016


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3402

--- Comment #4 from Florian <uni+clawsmail at duraffourg.eu> ---
Created attachment 1638
  -->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1638&action=edit
Check tags before freeing it

Hi,

g_hash_table_lookup returns the associated value, or NULL if the key is not
found
(https://developer.gnome.org/glib/stable/glib-Hash-Tables.html#g-hash-table-lookup)

The tags pointer may be NULL, in which case calling slist_free_strings_full on
it crash the application.

This patch simply check that tags is not NULL before calling
slist_free_strings_full.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list