From 8c6816694aa53f0836117b5eff7558daae3f5c4a Mon Sep 17 00:00:00 2001 From: cqm Date: Fri, 24 Nov 2023 18:35:39 +0800 Subject: [PATCH] cherry-pick Fix use after free. #403 --- libuvccamera/src/main/jni/libusb/libusb/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuvccamera/src/main/jni/libusb/libusb/io.c b/libuvccamera/src/main/jni/libusb/libusb/io.c index e873a1463..57853f4bf 100644 --- a/libuvccamera/src/main/jni/libusb/libusb/io.c +++ b/libuvccamera/src/main/jni/libusb/libusb/io.c @@ -1396,7 +1396,7 @@ void API_EXPORTED libusb_free_transfer(struct libusb_transfer *transfer) { itransfer = LIBUSB_TRANSFER_TO_USBI_TRANSFER(transfer); usbi_mutex_destroy(&itransfer->lock); free(itransfer); - transfer->user_data = NULL; // XXX + //transfer->user_data = NULL; // XXX } #ifdef USBI_TIMERFD_AVAILABLE