Re: [PATCH 5/7] grub-core/net/net.c: Fix uninitialized scalar variable

2022-03-17 Thread Daniel Kiper
On Tue, Mar 15, 2022 at 08:16:01PM -0500, Glenn Washburn wrote: > On Tue, 15 Mar 2022 16:24:07 -0400 > Alec Brown wrote: > > > In the function grub_net_ipv6_get_link_local(), > > grub_net_network_level_address_t > > addr is called but isn't being initialized. To prevent contents of this > > struc

[PATCH 5/7] grub-core/net/net.c: Fix uninitialized scalar variable

2022-03-15 Thread Alec Brown
In the function grub_net_ipv6_get_link_local(), grub_net_network_level_address_t addr is called but isn't being initialized. To prevent contents of this structure from being filled with junk data from the stack, we can initialize it to 0 by setting addr to {}; Fixes: CID 375033 Signed-off-by: Ale