RESOLVED FIXED254532
[CG] Building the dictionary of the async image decoding options is not thread safe
https://bugs.webkit.org/show_bug.cgi?id=254532
Summary [CG] Building the dictionary of the async image decoding options is not threa...
Said Abou-Hallawa
Reported 2023-03-27 09:57:05 PDT
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.
Attachments
Said Abou-Hallawa
Comment 1 2023-03-27 09:57:27 PDT
Said Abou-Hallawa
Comment 2 2023-03-27 10:01:20 PDT
EWS
Comment 3 2023-03-27 14:40:44 PDT
Committed 262175@main (04196137234f): <https://commits.webkit.org/262175@main> Reviewed commits have been landed. Closing PR #12015 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.