mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
BUG: missing %s in printing version tagtype. Thanks @Marshmellow!
BUG: buffer overflow when reading the Capability Container. Thanks @Marshmellow!
This commit is contained in:
parent
7d010c4991
commit
996fda30ee
1 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,7 @@ char* getProductTypeStr( uint8_t id){
|
|||
sprintf(retStr, "0x%02X %s", id, "(NTAG)");
|
||||
break;
|
||||
default:
|
||||
sprintf(retStr, "0x%02X ", id, "(unknown)");
|
||||
sprintf(retStr, "0x%02X %s", id, "(unknown)");
|
||||
break;
|
||||
}
|
||||
return buf;
|
||||
|
@ -148,6 +148,7 @@ static int ul_select( iso14a_card_select_t *card ){
|
|||
return resp.arg[0];
|
||||
}
|
||||
|
||||
// This read command will at least return 16bytes.
|
||||
static int ul_read( uint8_t page, uint8_t *response ){
|
||||
|
||||
uint8_t cmd[] = {ISO14443A_CMD_READBLOCK, page};
|
||||
|
@ -489,7 +490,7 @@ int CmdHF14AMfUInfo(const char *Cmd){
|
|||
if ((tagtype & (NTAG_213 | NTAG_215 | NTAG_216))){
|
||||
|
||||
PrintAndLog("--- Trying some NTAG stuff");
|
||||
uint8_t cc[4] = {0x00};
|
||||
uint8_t cc[16] = {0x00};
|
||||
status = ul_read(2, cc);
|
||||
if ( status == -1 ){
|
||||
PrintAndLog("Error: tag didn't answer to READ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue