Fix SEGV in cmdhf15 due to argtable size being miscomputed

This commit is contained in:
Jean-Michel Picod 2025-06-27 11:57:26 +02:00
parent 5de4dd68e5
commit 3625ee318a

View file

@ -2624,7 +2624,7 @@ static int CmdHF15Restore(const char *Cmd) {
"hf 15 restore -u E011223344556677 -f hf-15-my-dump.bin"
);
void *argtable[6 + 5] = {0};
void *argtable[6 + 4] = {0};
uint8_t arglen = arg_add_default(argtable);
argtable[arglen++] = arg_str0("f", "file", "<fn>", "Specify a filename for dump file");
argtable[arglen++] = arg_int0("r", "retry", "<dec>", "number of retries (def 3)");