modified weigand formats to include number of bits

This commit is contained in:
iceman1001 committed 2025-02-22 18:28:38 +01:00
1 parent a7643eef7c
commit 323a4284ff
8 files changed
+64 -59

No files matched your search

+1 -1
View File
@@ -596,8 +596,8 @@ static int PivGetData(Iso7816CommandChannel channel, const uint8_t tag[], size_t
// Answer can be chained. Let's use a dynamically allocated buffer.
size_t capacity = PM3_CMD_DATA_SIZE;
struct tlvdb_root *root = calloc(1, sizeof(*root) + capacity);
if (root == NULL) {
PrintAndLogEx(WARNING, "failed to allocate memory");
return PM3_EMALLOC;
}
root->len = 0;