diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-08-14 19:01:39 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-08-14 19:16:48 +0200 |
commit | 3e84c443857ae649be31df7ca13690c6d3578e54 (patch) | |
tree | 4173adb72616e9af3043721252306c25b0668f6d /decoders/eeprom24xx/pd.py | |
parent | 42227c2d29c8330c955cf64cf92be0bf1bf4aeeb (diff) | |
download | libsigrokdecode-3e84c443857ae649be31df7ca13690c6d3578e54.tar.gz libsigrokdecode-3e84c443857ae649be31df7ca13690c6d3578e54.zip |
usb_packet: Handle invalid packets more gracefully.
Previously the PD was blindly trying to decode any packet, no matter
whether it was too short (and/or bogus) or not, causing issues like this:
srd: Calling usb_packet decode(): IndexError: list index out of range
Such cases of invalid input are now handled better by emitting "UNKNOWN"
and "Invalid packet" annotations.
This fixes bug #186.
Diffstat (limited to 'decoders/eeprom24xx/pd.py')
0 files changed, 0 insertions, 0 deletions