v0l / radio_tool

Radio firmware tool
https://discord.gg/V596cyatmv
GNU General Public License v3.0
74 stars 17 forks source link

H8SX libusb_bulk_transfer buffer size and slightly improved logging #23

Closed edgetriggered closed 1 year ago

edgetriggered commented 1 year ago

The sizeof(buf) passed to libusb_bulk_transfer was previously the size of the pointer returned from calloc rather than intended 64k BUF_SIZE, resulting in libusb either returning -EOVERFLOW or happily performing an out of bounds operation.