Most functions in mifare_classic.c contain a little prelude to check the input
data for sanity:
ASSERT_ACTIVE (tag);
ASSERT_MIFARE_CLASSIC (tag);
Some other functions don't do this. I found that at least the following
functions don't check the state of tag:
mifare_classic_get_trailer_block_permission
mifare_classic_get_data_block_permission
mifare_classic_format_sector
Perhaps I am in err about this, but if the libfreefare really does not perform
any checks here, this might be a bug. Perhaps the problem also affects other
tag types.
Original issue reported on code.google.com by fuz...@gmail.com on 18 Mar 2014 at 1:59
Original issue reported on code.google.com by
fuz...@gmail.com
on 18 Mar 2014 at 1:59