darwin: Improve error checking to prevent (very unlikely) null dereference
authorSean McBride <sean@rogue-research.com>
Fri, 5 Jan 2018 03:17:24 +0000 (22:17 -0500)
committerChris Dickens <christopher.a.dickens@gmail.com>
Tue, 9 Jan 2018 06:11:40 +0000 (22:11 -0800)
commitfef88bf2b91ee4d7cfcc9d3b799a2996ecfe0d2c
treeba6fd03b2b6f0636a6ddfe26c4825501c71967bd
parent4f9d58564ed8ee81afc3884fa35a57b16e9bacca
darwin: Improve error checking to prevent (very unlikely) null dereference

Defend against the very unlikely possibility of CFNumberCreate() returning null.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/darwin_usb.c
libusb/version_nano.h