libfreefare/test
Romain Tartière 57e1fceb6b Prevent mifare_desfire_read_data() overflow.
Depending on the communication settings, mifare_desfire_read_data() may
write more than the provided "length" bytes to the "data" buffer,
possibly causing data corruption or crashes if no special care is taken.

Since the test suite is precisely a "no special care is taken" example,
assume only "length" bytes can be written to the "data" buffer and rely
on a temporary buffer for cryptographic operations.

Fixes  issue 28.
2014-04-16 01:54:14 +02:00
..
common warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') 2012-05-18 16:03:07 +00:00
Makefile.am warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') 2012-05-18 16:03:07 +00:00
mifare_classic_fixture.c Align with libnfc API change: test nfc_init() result 2013-03-30 18:07:34 +01:00
mifare_classic_fixture.h Abstract tag manipulation functions. 2010-02-19 14:50:18 +00:00
mifare_desfire_ev1_fixture.c Align with libnfc API change: test nfc_init() result 2013-03-30 18:07:34 +01:00
mifare_desfire_ev1_fixture.h Add support for Mifare DESFire EV1 with AES encryption. 2010-12-15 12:43:31 +00:00
mifare_desfire_fixture.c Align with libnfc API change: test nfc_init() result 2013-03-30 18:07:34 +01:00
mifare_desfire_fixture.h Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
mifare_ultralight_fixture.c Align with libnfc API change: test nfc_init() result 2013-03-30 18:07:34 +01:00
mifare_ultralight_fixture.h Abstract tag manipulation functions. 2010-02-19 14:50:18 +00:00
run-test.sh Workaround a FreeBSD-specific bug in cutter. 2010-06-26 13:45:46 +00:00
test_mad.c Fix MAD CRC algorithm. 2010-03-18 21:03:07 +00:00
test_mifare_application.c Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
test_mifare_classic.c Add support for 7-byte UID MIFARE Classic cards 2013-01-29 23:26:32 +01:00
test_mifare_classic_create_trailer_block.c Update files headers and Ids. 2010-02-19 10:43:06 +00:00
test_mifare_classic_mad.c Reindent (1/2). 2010-09-03 18:01:02 +00:00
test_mifare_classic_sector_boundaries.c Refactoring Blocks vs. Sectors. 2010-07-01 23:19:45 +00:00
test_mifare_desfire.c Do not abort on crypto error. 2011-02-13 14:13:35 +00:00
test_mifare_desfire_aes.c Fix headers for memset(). 2010-12-24 13:49:09 +00:00
test_mifare_desfire_aid.c New API function mifare_desfire_aid_get_aid(). 2010-10-17 20:21:06 +00:00
test_mifare_desfire_des.c Commit files forgotten as part of r733. 2010-12-24 20:39:54 +00:00
test_mifare_desfire_ev1.c Prevent mifare_desfire_read_data() overflow. 2014-04-16 01:54:14 +02:00
test_mifare_desfire_ev1_3des.c Freshen out cut_assert_success() macro. 2010-12-24 13:59:28 +00:00
test_mifare_desfire_ev1_3k3des.c New API functions mifare_desfire_create_application_3k3des(), mifare_desfire_create_application_aes(). 2011-03-25 13:00:24 +00:00
test_mifare_desfire_ev1_aes.c Fix mifare_desfire_create_value_file(). 2011-04-23 15:31:45 +00:00
test_mifare_desfire_ev1_iso.c Remove unused variable. 2012-05-14 14:01:08 +00:00
test_mifare_desfire_key.c Merge the freefare-desfire branch into trunk. 2010-07-26 21:48:18 +00:00
test_mifare_ultralight.c fix typo 2012-11-13 23:35:53 +00:00
test_tlv.c Reindent (1/2). 2010-09-03 18:01:02 +00:00