]> sigrok.org Git - libsigrok.git/commit
asix-sigma: check sdi before dereferencing a NULL pointer
authorGerhard Sittig <redacted>
Wed, 31 Aug 2022 15:37:05 +0000 (09:37 -0600)
committerGerhard Sittig <redacted>
Mon, 12 Sep 2022 16:28:36 +0000 (18:28 +0200)
commit05a8a5f3c34fab5fbabe241dacd929616ebae88f
tree77deb5df1702101d475f81c448b62b87c3b20396
parent93a28f0b0270d79ddfd52f3cd3f0ad190697fd92
asix-sigma: check sdi before dereferencing a NULL pointer

The asix-sigma config_list() routine unconditionally dereferenced the
'sdi' pointer, which could be NULL. Properly check before dereferencing.
This issue was introduced in commit eabf9ca630f4. How to reproduce:

  $ sigrok-cli -d asix-sigma --show

Reported-By: Paul Kasemir <redacted>
src/hardware/asix-sigma/api.c