bgpd and ldpd pfkey_reply might access uninitialized stack memory
Hi tech, Dear claudio, there could be an uninitialized stack memory access in pfkey_reply. It looks like this: struct sadb_msg hdr, *msg; ... do { rv = pfkey_read(sd, &hdr); if (rv == -1) return (-1); } while (rv);
Re: bgpd and ldpd pfkey_reply might access uninitialized stack memory
On Mon, Nov 07, 2022 at 08:12:23PM +0100, Moritz Buhl wrote: > Hi tech, > Dear claudio, > > there could be an uninitialized stack memory access in pfkey_reply. > > It looks like this: > struct sadb_msg hdr, *msg; > ... > > do { > rv = pfkey_read(sd, &hdr); >