Re: [PATCH] lib/message.cc: stale pointer bug (v3)

Subject: Re: [PATCH] lib/message.cc: stale pointer bug (v3)

Date: Fri, 03 May 2013 21:28:09 -0300

To: Vladimir.Marek@oracle.com, notmuch@notmuchmail.org

Cc: Vladimir Marek

From: David Bremner


Vladimir.Marek@oracle.com writes:

> From: Vladimir Marek <vlmarek@volny.cz>
>
> Xapian::TermIterator::operator* returns std::string which is destroyed
> as soon as (*i).c_str() finishes. The remembered pointer 'term' then
> references invalid memory.

Pushed,

d

Thread: