]> git.proxmox.com Git - mirror_frr.git/commit - lib/mlag.c
lib, pimd, zebra: Provide some insurance against reading bad stream data
authorSatheesh Kumar K <sathk@cumulusnetworks.com>
Fri, 11 Oct 2019 04:33:19 +0000 (21:33 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Mar 2020 21:03:59 +0000 (16:03 -0500)
commit83f8a12b8ecbc3ffb285a59b6ce0a86e3a0cfb8f
tree0d7f848ec54b3b866a7c8cb8c32b19d2155da241
parentfa696b37276b7c396e55aba1a55b0b7441af14e9
lib, pimd, zebra: Provide some insurance against reading bad stream data

This patch does two things:

1) Ensure the decoding of stream data between pim <-> zebra is properly
decoded and we don't read beyond the end of the stream.

2) In zebra when we are freeing memory alloced ensure that we
actually have memory to delete before we do so.

Ticket: CM-27055
Signed-off-by: Satheesh Kumar K <sathk@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/mlag.c
lib/mlag.h
pimd/pim_mlag.c
zebra/zebra_mlag.c