[Webkit-unassigned] [Bug 254532] New: [CG] Building the dictionary of the async image decoding options is not thread safe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 27 09:57:05 PDT 2023


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

            Bug ID: 254532
           Summary: [CG] Building the dictionary of the async image
                    decoding options is not thread safe
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: sabouhallawa at apple.com

imageSourceThumbnailOptions() is called to build the dictionary of the async image decoding options. It uses the static variable `options` which is initialized the first time this function is called. If this function is called from multiple threads at the same time, more than one thread can see that the static variable `options` is initialized and may initialize it then. Setting the variable from these threads are not be atomic. So we may be end up with invalid pointer for this static variable.

-- 
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/20230327/a9ef4d57/attachment.htm>


More information about the webkit-unassigned mailing list