Skip to content

Commit

Permalink
hf 14a ndef sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed May 25, 2021
1 parent 42dd1e6 commit 95dfe54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/cmdhf14a.c
Original file line number Diff line number Diff line change
Expand Up @@ -2451,6 +2451,7 @@ static int CmdHF14ANdef(const char *Cmd) {

print_cc_info(cc_data, sizeof(cc_data));
uint16_t max_rapdu_size = (cc_data[3] << 8 | cc_data[4]) - 2;
max_rapdu_size = max_rapdu_size < sizeof(response) - 2 ? max_rapdu_size : sizeof(response) - 2;

// --------------- NDEF file reading ----------------
uint8_t aSELECT_FILE_NDEF[30];
Expand Down

0 comments on commit 95dfe54

Please sign in to comment.