Closed dgeng closed 8 years ago
I discovered this issue when I did the below
macbook:tmp james$ ls -l /usr/local/share/pcsc/smartcard_list.txt
-rw-r--r-- 1 root admin 234566 Jan 6 14:45 /usr/local/share/pcsc/smartcard_list.txt
macbook:parseATR james$ python stress_test.py > out.log
Traceback (most recent call last):
File "stress_test.py", line 61, in <module>
stress(List)
File "stress_test.py", line 44, in stress
txt = parseATR.atr_display_txt(parseATR.parseATR(atr))
File "/private/tmp/pyscard-contrib/parseATR/parseATR.py", line 1108, in atr_display_txt
return atr_display(atr, colorize_txt)
File "/private/tmp/pyscard-contrib/parseATR/parseATR.py", line 1225, in atr_display
t = analyse_histrorical_bytes(atr["hb"])
File "/private/tmp/pyscard-contrib/parseATR/parseATR.py", line 997, in analyse_histrorical_bytes
[t, a] = compact_tlv(historical_bytes)
File "/private/tmp/pyscard-contrib/parseATR/parseATR.py", line 931, in compact_tlv
sw1 = historical_bytes[0]
IndexError: list index out of range