You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole cs computation is useless, because its value is never used. Its initial value is saved into ocs at the beginning of the block, then restored afterwards. So there must be something missing (or just old unused code).
The text was updated successfully, but these errors were encountered:
While debugging another issue, I stumbled upon that code in
read_data()
:libfreefare/libfreefare/mifare_desfire.c
Line 1708 in c2b0cfa
The
(cs | MDCM_MACED)
expression is obviously wrong as it is is always true.Furthermore, there is something wrong in the main logic:
libfreefare/libfreefare/mifare_desfire.c
Lines 1707 to 1718 in c2b0cfa
The whole
cs
computation is useless, because its value is never used. Its initial value is saved intoocs
at the beginning of the block, then restored afterwards. So there must be something missing (or just old unused code).The text was updated successfully, but these errors were encountered: