From 57f93fbeda29b1ec868ded4d3ffd8f78503fa99b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 29 Jan 2013 11:45:40 +0100 Subject: [PATCH] Fix buffer size in desfire_get_version, now cutter is happy on DF EV1 38 test(s), 8120 assertion(s), 0 failure(s), 0 error(s), 0 pending(s), 19 omission(s), 0 notification(s) 100% passed --- libfreefare/mifare_desfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/mifare_desfire.c b/libfreefare/mifare_desfire.c index b8dded3..3083fea 100644 --- a/libfreefare/mifare_desfire.c +++ b/libfreefare/mifare_desfire.c @@ -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];