[Webkit-unassigned] [Bug 164864] REGRESSION(r208511): ImageDecoders: Crash decoding GIF images since r208511
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 17 22:29:42 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=164864
--- Comment #8 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #6)
> Comment on attachment 295048 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=295048&action=review
>
> Would it be better to rename the existing virtual frameBufferAtIndex()
> functions to be internalFrameBufferAtIndex() and create a non virtual
> function called frameBufferAtIndex() in imageDecoder class which does the
> locking and call internalFrameBufferAtIndex()?
I thought about that but I also want to make sure the returned ImageFrame is not modified by another thread, that's why don't release the lock until the end of the function.
> > Source/WebCore/platform/image-decoders/ImageDecoder.cpp:174
> > + Locker<Lock> locker(m_lock);
>
> You can use LockHolder instead of Locker<Lock>.
Sure!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161118/35b112a9/attachment.html>
More information about the webkit-unassigned
mailing list