Re: [PATCH 01/24] lib/message.cc: stale pointer bug

Subject: Re: [PATCH 01/24] lib/message.cc: stale pointer bug

Date: Wed, 1 May 2013 23:43:24 +0200

To: notmuch@notmuchmail.org

Cc: Vladimir Marek

From: Vladimir Marek


Uh, oh, it's patch 01/01 actually. There's 23 other patches waiting but
will be submitted separately.

> Xapian::TermIterator::operator* returns std::string which is destroyed
> as soon as (*i).c_str() finishes. The remembered pointer 'term' then
> references invalid memory.

I reworded the comment and I changed the fix slightly.

Thank you
-- 
	Vlad

Thread: