read after free in notmuch new

David Bremner david at tethera.net
Tue Feb 28 17:49:44 PST 2017


David Bremner <david at tethera.net> writes:

> David Bremner <david at tethera.net> writes:
>
>> I haven't had a chance to really track this down, but it seems there is
>> a memory error in notmuch new (or a maybe false positive from valgrind).
>>
>> Attached is the log from running "make memory-test OPTIONS=--medium" on
>> current git master (0e037c34).
>>
>> It looks like we talloc the message_id string with the message object as
>> parent, but it somehow outlives the message object.
>
> Sorry, that had a few commits beyond master.
>
> master (08343d3d) gives essentially the same log.
>

This should be fixed as of commit 

     4e649d000b9d3764aea98cb0e1120947d7f76f3d


More information about the notmuch mailing list