]> sigrok.org Git - libsigrokdecode.git/commit
Return SRD_ERR_ARG from srd_inst_decode if samplenums are wrong
authorMarcus Comstedt <redacted>
Sun, 26 Feb 2017 12:07:03 +0000 (13:07 +0100)
committerUwe Hermann <redacted>
Sun, 26 Feb 2017 13:56:56 +0000 (14:56 +0100)
commitde23c992a48b5f9f145a7c26a62f10cd5b87b218
treeab34ed2fbb7a10c4ef88b5c0df5ee6cf794b45a4
parent066fbafdc3ba734a73b5f7fcfa1dbae67ddebf8a
Return SRD_ERR_ARG from srd_inst_decode if samplenums are wrong

This validates the requirements that
* abs_start_samplenum continues where the previous decode ended
* abs_end_samplenum is not lower than abs_start_samplenum

Failure to meet these requirements will make v3 decoders crash.
instance.c