mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
coverity fix 286680
This commit is contained in:
parent
0759f886f4
commit
0896cee51c
1 changed files with 3 additions and 3 deletions
|
@ -2712,8 +2712,8 @@ static int CmdHF14ADesCreateValueFile(const char *Cmd) {
|
||||||
CLIGetHexWithReturn(7, value, &vllen);
|
CLIGetHexWithReturn(7, value, &vllen);
|
||||||
|
|
||||||
int limitedlen = 0;
|
int limitedlen = 0;
|
||||||
uint8_t limited = 0;
|
uint8_t limited[1] = {0};
|
||||||
CLIGetHexWithReturn(8, &limited, &limitedlen);
|
CLIGetHexWithReturn(8, limited, &limitedlen);
|
||||||
|
|
||||||
CLIParserFree();
|
CLIParserFree();
|
||||||
|
|
||||||
|
@ -2781,7 +2781,7 @@ static int CmdHF14ADesCreateValueFile(const char *Cmd) {
|
||||||
memcpy(ft.lowerlimit, lowerlimit, 4);
|
memcpy(ft.lowerlimit, lowerlimit, 4);
|
||||||
memcpy(ft.upperlimit, upperlimit, 4);
|
memcpy(ft.upperlimit, upperlimit, 4);
|
||||||
memcpy(ft.value, value, 4);
|
memcpy(ft.value, value, 4);
|
||||||
ft.limitedcreditenabled = limited;
|
ft.limitedcreditenabled = limited[0];
|
||||||
|
|
||||||
res = handler_desfire_create_value_file(&ft);
|
res = handler_desfire_create_value_file(&ft);
|
||||||
if (res == PM3_SUCCESS) {
|
if (res == PM3_SUCCESS) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue