nfc-tools / libfreefare

A convenience API for NFC cards manipulations on top of libnfc.
Other
395 stars 106 forks source link

Added safety check len == 0 #109

Closed SloCompTech closed 4 years ago

SloCompTech commented 5 years ago

Fixing issue #69, compiled with success, not tested. Would anyone test that it is working ?

P. S. Please check if my identation is correct, I set it to 4 spaces like it said in HACKING.md.

smortex commented 4 years ago

Oh yes, that was open for a long time. Never mind, the unit tests are not critical for this and the behavior was wrong. Thanks!