• Jinoh Kang's avatar
    gdiplus: Replace GpImage's busy flag with SRWLOCK. · 72c0c88f
    Jinoh Kang authored
    Today, the image_unlock() helper function has a data race due to
    non-atomic write to GpImage's 'busy' flag which is accessible by other
    threads.  Also, it lacks a release fence, which means that other threads
    can observe the unlocked (busy = 0) state too early when the current
    thread unlocks the image; specifically, the write to the 'busy' field of
    the GpImage can be reordered before the last read/write to any other
    fields of the same GpImage.
    
    Fix this by replacing the 'busy' field of GpImage with SRWLOCK.
    72c0c88f
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...