]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: fix heap buffer overflow in lcom -> str enc
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 21 Nov 2019 23:55:59 +0000 (18:55 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 16 Jan 2020 19:36:52 +0000 (14:36 -0500)
commitd8a9566e4b1a8b25545ded2a2b4dbbc013d334ac
tree4d6cad4289b64c27ebe3206daba8e8488f6c67a1
parent73b5d44168a1f7927bae7943fb9ec3dac953206d
bgpd: fix heap buffer overflow in lcom -> str enc

Spaces were not being accounted for in the heap buffer sizing, leading
to a heap buffer overflow when encoding large communities to their
string representations.

This patch also uses safer functions to do the encoding instead of
pointer math.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_lcommunity.c