[Webkit-unassigned] [Bug 239338] -Wuse-after-free warning when building RefCounter test with GCC 12

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 15:12:37 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=239338

--- Comment #1 from Michael Catanzaro <mcatanzaro at gnome.org> ---
This warning is a false positive. m_refCounter is nullptr at this point. RefCounter<T>::~RefCounter calls m_count->refCounterWasDeleted(), which sets m_refCounter = nullptr. It's a poor man's WeakPtr, basically. I instrumented the code with some WTFLogAlways and it looks like everything is going fine, so I will suppress this warning.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220512/07b47ddd/attachment.htm>


More information about the webkit-unassigned mailing list