Unverified Commit 75cf728f authored by gcf's avatar gcf Committed by GitHub
Browse files

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


The gpt pointer is not initialized, and when offset < 0, it may result in freeing unallocated memory. (#2499)
Signed-off-by: default avataryuxiaojun <yuxiaojun1011@outlook.com>
Co-authored-by: default avataryuxiaojun <yuxiaojun1011@outlook.com>
parent 8723aeb4
...@@ -504,7 +504,7 @@ grub_err_t ventoy_cmd_get_vtoy_type(grub_extcmd_context_t ctxt, int argc, char * ...@@ -504,7 +504,7 @@ grub_err_t ventoy_cmd_get_vtoy_type(grub_extcmd_context_t ctxt, int argc, char *
vhd_footer_t vhdfoot; vhd_footer_t vhdfoot;
VDIPREHEADER vdihdr; VDIPREHEADER vdihdr;
char type[16] = {0}; char type[16] = {0};
ventoy_gpt_info *gpt; ventoy_gpt_info *gpt = NULL;
(void)ctxt; (void)ctxt;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment