]> sigrok.org Git - libsigrok.git/commit
hp-3478a: avoid NULL dereference in config API routines
authorGerhard Sittig <redacted>
Mon, 28 Jun 2021 05:34:23 +0000 (07:34 +0200)
committerGerhard Sittig <redacted>
Mon, 28 Jun 2021 05:34:23 +0000 (07:34 +0200)
commit020df861e0eb70dd39944d861885210ca7e7cc2a
treeebfd0c8f04d979314d134c92d746fcef40242afe
parent1e91a90f2ad5f915c2490c1f099f05e15277a365
hp-3478a: avoid NULL dereference in config API routines

The 'sdi' parameter to config API calls can be NULL. Only dereference
after checking its validity.

Reported-By: Alexandre Ferreira <redacted>
src/hardware/hp-3478a/api.c