mcuee / libusb-win32

libusb-win32 project official github repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: usb_free_async should check CloseHandle return value

mcuee opened this issue · comments

commented

https://sourceforge.net/p/libusb-win32/patches/14/

Updated: 2012-07-06 Created: 2012-01-30 Creator: Kirill Batuzov

I believe usb_free_async should check return value of CloseHandle. Otherwise a situation when CloseHandle fails for some reason and not actually closes handle but usb_context_t is being freed nevertheless is entirely possible. This would lead to a resource leak which is nearly impossible to diagnose from a user application.

commented

libusb-win32 project is in a support only mode. Mailing list support is still provided, no changes to the codes and release, unless critical bug found and the fixes are feasible.

commented

@dontech Not sure if this is still relevant or not. Please take a look. We can close it if it is no longer relevant.

Fixed on master