summaryrefslogtreecommitdiff
path: root/Xcode
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2021-01-01 11:12:41 -0800
committerSam Lantinga <slouken@libsdl.org>2021-01-01 11:12:41 -0800
commit33dbc361cc226ea240544e570b99e4043943e5a3 (patch)
tree59bcc4c18c7cb4bad98020d62d5a743c85e1eecf /Xcode
parentb2a98a9176b4819e2d04a2d530aa605e8388e868 (diff)
downloadsdl-33dbc361cc226ea240544e570b99e4043943e5a3.tar.gz
Fix use-after-free SBH corruption due to overlapped ReadFile in hidapi not being canceled for all threads before device close
- hidapi already called CancelIo on hid_close but that only cancels pending IO for the current thread. Controller read/writes originate from multiple threads (serialized, but on a different thread nonetheless) but device destruction was always done on the main device thread which left any pending overlapped reads still running after hidapi's internal read buffer is deallocated leading to intermittent free list corruption.
Diffstat (limited to 'Xcode')
0 files changed, 0 insertions, 0 deletions