mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-15 19:59:34 +08:00
cmdhf14b.c: fixing a crash in the crc computation when missing data (e.g. with 'hf 14b raw -c -p')
This commit is contained in:
parent
3f7c993d78
commit
06b82e6a6d
1 changed files with 5 additions and 0 deletions
|
@ -334,6 +334,11 @@ int CmdHF14BCmdRaw (const char *cmd) {
|
|||
PrintAndLog("Invalid char on input");
|
||||
return 0;
|
||||
}
|
||||
if (datalen == 0)
|
||||
{
|
||||
PrintAndLog("Missing data input");
|
||||
return 0;
|
||||
}
|
||||
if(crc)
|
||||
{
|
||||
uint8_t first, second;
|
||||
|
|
Loading…
Reference in a new issue