mirror of https://gerrit.osmocom.org/simtrace2
SIMtrace2 (based on AT91SAM3), firmware and host tools, including card emulation
https://osmocom.org/projects/simtrace2
f6bf349a53
Before this change pcsc_scan would always receive garbage from the stack when the reset button was pressed on the simtrace board. Because the return value of ISO7816_GetChar is never checked anywhere. If there is a timeout in this function, the non-initialized local variable values which happen to be lying around on the stack are inserted into the ATR message and send to the host. This only helps mitigating the symptoms but does not remove the reason for the behavior. On the other hand, is it really feasable to check the return value on EVERY call to ISO7816_GetChar..? |
||
---|---|---|
minimal | ||
sam3s_example | ||
clk_calc.py |