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
parent 0655b6389e
commit 2163d78126
+1 -1
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);