gousb
gousb copied to clipboard
Fix a segfault caused by invalid Go pointer
Do not pass a Go pointer to the C-land. Instead use the C pointer to struct_libusb_transfer as a key to the transfer map.
This addresses issue #50. The change is a backport of mechanism used in github.com/google/gousb.