libusbx/libusbx — pull request #136 by ikarienator (2013-08-23 08:10:01+00:00)
Title: darwin_bulk_transfer crashes with EXC_ARITHMETIC on Mac

GetPipeProperties may fail when the device is unplugged if `DeviceVersion` not greater than 320. This case `maxPacketSize` will be zero and the integer division will throw a EXC_ARITHMETIC signal.