]> sigrok.org Git - libsigrokdecode.git/commit
decoder: check annotation rows' references to annotation classes
authorGerhard Sittig <redacted>
Sun, 1 Nov 2020 11:33:47 +0000 (12:33 +0100)
committerGerhard Sittig <redacted>
Sun, 9 Jan 2022 16:53:37 +0000 (17:53 +0100)
commit8ab7ede6bb84e78232a8927fea16295040d650b4
treef5165c74ed7695462c2bb01487e8a65d33955e9e
parentfdb1a90748f11204293dc8c6e2b559ef8ee8c08e
decoder: check annotation rows' references to annotation classes

Check the annotation class indices when iterating annotation rows.
Refuse to load decoders with inconsistent declarations, emit error
messages to raise developers' awareness of implementation bugs.

This fixes bug #1601.
decoder.c