cmdhfseos: fix invalid memory access in select_DF_verify

The real default key index in CmdHfSeosGDF passed to select_DF_verify was different than documented, resulting in out of bound read.
This commit is contained in:
Jakub Kramarz 2025-05-09 00:05:43 +02:00
commit 2163d78126

View file

@ -1351,7 +1351,7 @@ static int CmdHfSeosGDF(const char *Cmd) {
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
int key_index = arg_get_int_def(ctx, 1, -1);
int key_index = arg_get_int_def(ctx, 1, 0);
CLIParserFree(ctx);
return seos_global_df(key_index);