[Webkit-unassigned] [Bug 196855] Fix Covscan uninitialized after ctor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 12 13:18:29 PDT 2019


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

--- Comment #19 from Michael Catanzaro <mcatanzaro at igalia.com> ---
(In reply to Alexey Proskuryakov from comment #16)
> Most of the code that Coverity complains about is not dead code of the kind
> you describe. Let's look at the changes to GradientImage for example, are
> you claiming that the compiler is going to eliminate the unnecessary
> initialization added in this patch?

It's not unnecessary, though. It's fixing a real bug. The first time GradientImage::drawPattern is called, m_cachedGeneratorHash is read uninitialized. The only place m_cachedGeneratorHash is ever initialized is after that read, so currently there's no way it can ever be initialized unless an uninitialized memory read has already occurred.

I don't like Coverity, but got to admit the scan results are quality....

-- 
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/20190412/b2027a37/attachment.html>


More information about the webkit-unassigned mailing list