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
Hi,
In my app I used nfc_initiator_transceive_bytes() (libnfc) function to read Desfire tag and building each APDU but in my tests, the reading that uses the read_data() (libfreefare) function is faster.
However, it gives me many errors when read_data() free the read data buffer:
*** Error in `./app': free(): invalid next size (normal): 0x00c65588 ***
I read that the problem was solved if change a line in mifare_desfire_crypto.c file, in enciphered_data_length() function exactly: return padded_data_length (nbytes + crc_length + 1, block_size);
instead return padded_data_length (nbytes + crc_length, block_size);
But the error persist.
Anyone know what can I do with this issue?
The text was updated successfully, but these errors were encountered:
Hi,
In my app I used nfc_initiator_transceive_bytes() (libnfc) function to read Desfire tag and building each APDU but in my tests, the reading that uses the read_data() (libfreefare) function is faster.
However, it gives me many errors when read_data() free the read data buffer:
The implicated fragment is:
I read that the problem was solved if change a line in mifare_desfire_crypto.c file, in enciphered_data_length() function exactly:
return padded_data_length (nbytes + crc_length + 1, block_size);
instead
return padded_data_length (nbytes + crc_length, block_size);
But the error persist.
Anyone know what can I do with this issue?
The text was updated successfully, but these errors were encountered: