<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r208511): ImageDecoders: Crash decoding GIF images since r208511"
   href="https://bugs.webkit.org/show_bug.cgi?id=164864#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r208511): ImageDecoders: Crash decoding GIF images since r208511"
   href="https://bugs.webkit.org/show_bug.cgi?id=164864">bug 164864</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=164864#c6">comment #6</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=295048&amp;action=diff" name="attach_295048" title="Patch">attachment 295048</a> <a href="attachment.cgi?id=295048&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=295048&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=295048&amp;action=review</a>
&gt; 
&gt; Would it be better to rename the existing virtual frameBufferAtIndex()
&gt; functions to be internalFrameBufferAtIndex() and create a non virtual
&gt; function called frameBufferAtIndex() in imageDecoder class which does the
&gt; locking and call internalFrameBufferAtIndex()?</span >

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.

<span class="quote">&gt; &gt; Source/WebCore/platform/image-decoders/ImageDecoder.cpp:174
&gt; &gt; +    Locker&lt;Lock&gt; locker(m_lock);
&gt; 
&gt; You can use LockHolder instead of Locker&lt;Lock&gt;.</span >

Sure!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>