Skip to content

Commit

Permalink
Fix buffer size in desfire_get_version, now cutter is happy on DF EV1
Browse files Browse the repository at this point in the history
38 test(s), 8120 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 19 omission(s), 0 notification(s)
100% passed
  • Loading branch information
doegox committed Jan 29, 2013
1 parent 601b753 commit 57f93fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libfreefare/mifare_desfire.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ mifare_desfire_get_version (MifareTag tag, struct mifare_desfire_version_info *v
ASSERT_NOT_NULL (version_info);

BUFFER_INIT (cmd, 1);
BUFFER_INIT (res, 14 + CMAC_LENGTH); /* 8, 8, then 15 byte results */
BUFFER_INIT (res, 15 + CMAC_LENGTH); /* 8, 8, then 15 byte results */

char buffer[28 + CMAC_LENGTH + 1];

Expand Down

0 comments on commit 57f93fb

Please sign in to comment.