Skip to content

Commit

Permalink
The gpt pointer is not initialized, and when offset < 0, it may resul…
Browse files Browse the repository at this point in the history
…t in freeing unallocated memory. (#2499)

Signed-off-by: yuxiaojun <[email protected]>
Co-authored-by: yuxiaojun <[email protected]>
  • Loading branch information
slark-yuxj and yuxiaojun authored May 19, 2024
1 parent 8723aeb commit 75cf728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_vhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 75cf728

Please sign in to comment.