|
From: Peter S. <pe...@st...> - 2012-11-19 12:43:34
|
Akos Vandra wrote: > If libusb_init is supplied with a nil pointer, it causes a segfault. Even > though this is a user application error, it should be checked, and an error > should be returned. libusb on purpose doesn't check application data, and adding checks would need to be not just in libusb_init but in every function for every parameter. That was never really desirable, even during design discussion for the 1.0 API many years ago. Documentation patches to make it more clear what parameters are allowed where are of course always welcome! Thanks //Peter |