]> sigrok.org Git - libsigrok.git/commit
brymen-bm86x: avoid NULL deref when usb->devhdl does not exist
authorGerhard Sittig <redacted>
Sun, 30 Sep 2018 19:52:21 +0000 (21:52 +0200)
committerUwe Hermann <redacted>
Tue, 2 Oct 2018 17:01:04 +0000 (19:01 +0200)
commit3ef305b0798bdad70d8b57a606139446507a99e0
tree8a3052bea74160cef83d5fcf30e7064e1e6ca244
parentbd10287e7cc24c1ba268676b6a0a56073e990297
brymen-bm86x: avoid NULL deref when usb->devhdl does not exist

There are code paths where dev_close() tries to access a USB handle
which does not exist. This was observed with this command:

  $ sigrok-cli -d brymen-bm86x --scan
src/hardware/brymen-bm86x/api.c