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

David Bremner david at tethera.net
Fri May 3 17:28:09 PDT 2013


Vladimir.Marek at oracle.com writes:

> From: Vladimir Marek <vlmarek at 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


More information about the notmuch mailing list