summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorGravatar Parker Wahle2026-11-24 10:18:14 -0500
committerGravatar Parker Wahle2026-11-24 10:18:14 -0500
commit4bc251f4983610e4cfb2bfaafbe731f1acab9df5 (patch)
tree78153b6756c21d437eebb8609fd23e5e8fec9642 /.github/workflows/build.yml
parent5fff1fe02db4a5812901fed9643b6f79a5fb02fd (diff)
downloadlibirecovery-4bc251f4983610e4cfb2bfaafbe731f1acab9df5.tar.gz
libirecovery-4bc251f4983610e4cfb2bfaafbe731f1acab9df5.tar.bz2
Fix use-after-free and leak in libusb async control transfer
irecv_async_usb_control_transfer() freed the setup buffer right after libusb_submit_transfer(), while the transfer was still in flight and although LIBUSB_TRANSFER_FREE_BUFFER had handed it to libusb, and never freed the transfer. Nothing waits for this transfer, so set LIBUSB_TRANSFER_FREE_TRANSFER as well and let libusb free both once it completes. If the submit fails, libusb_free_transfer() frees both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to '.github/workflows/build.yml')
0 files changed, 0 insertions, 0 deletions