]> git.notmuchmail.org Git - notmuch/commit
lib: Audit calls to notmuch_message_get_header to handle NULL return
authorCarl Worth <cworth@cworth.org>
Sat, 24 Apr 2010 13:46:43 +0000 (06:46 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 24 Apr 2010 13:50:04 +0000 (06:50 -0700)
commit3dbef312fbe9b8da247106a177ac58d73b9b9e92
treec7ef43b4964d1e022edaa17b270154072975fb23
parent7c421b87b05d2513540a75bbe1841e226072ad7c
lib: Audit calls to notmuch_message_get_header to handle NULL return

Sebastian Spaeth reported [*] a segfault within libnotmuch when
running notmuch operations while an asyncronous offlineimap job had
removed some files from the mail store. Avoid this by handling all
cases where notmuch_message_get_header could return NULL.

[*] See message id:87d3xqti3o.fsf@SSpaeth.de on notmuch@notmuchmail.org
lib/thread.cc