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

Vladimir Marek Vladimir.Marek at Oracle.COM
Wed May 1 14:43:24 PDT 2013


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


More information about the notmuch mailing list