[Webkit-unassigned] [Bug 65414] DequeIterator lacks default constructor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 29 00:50:03 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=65414
MORITA Hajime <morrita at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |morrita at google.com
--- Comment #12 from MORITA Hajime <morrita at google.com> 2011-09-29 00:50:03 PST ---
> Honestly I don't get it. It is coming from here:
>
> DequeConstIterator<DataType*> found;
> while (!m_killed && !timedOut && (found = m_queue.findIf(predicate)) == m_queue.end())
> timedOut = !m_condition.timedWait(m_mutex, absoluteTime);
>
> found.m_index is uninitialized first bug the iterator is assigned before used and operator= sets the value. Maybe a compiler error?
The default constructor of DequeConstIteratorBase doesn't initialized m_index,
and this patch instantiates the constructor code, that causes the warning.
You can add "m_index(0)" to the constructor definition.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list