The gpt pointer is not initialized, and when offset < 0, it may result in freeing unallocated memory.

Signed-off-by: yuxiaojun <yuxiaojun1011@outlook.com>
pull/2499/head
yuxiaojun 10 months ago
parent f8811a4656
commit 6b5c9f91c9

@ -504,7 +504,7 @@ grub_err_t ventoy_cmd_get_vtoy_type(grub_extcmd_context_t ctxt, int argc, char *
vhd_footer_t vhdfoot;
VDIPREHEADER vdihdr;
char type[16] = {0};
ventoy_gpt_info *gpt;
ventoy_gpt_info *gpt = NULL;
(void)ctxt;

Loading…
Cancel
Save