]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldp: avoid memory leak from bad packets 418/head
authorAaron Conole <aconole@redhat.com>
Tue, 17 Nov 2020 14:28:17 +0000 (09:28 -0500)
committerAaron Conole <aconole@redhat.com>
Tue, 17 Nov 2020 14:30:16 +0000 (09:30 -0500)
commita8d3c90feca548fc0656d95b5d278713db86ff61
tree9b237bb0019b2c5672cc79971b72ca6d1902378e
parent9b50cef92a8bed699fb5205974001228556af634
lldp: avoid memory leak from bad packets

A packet that contains multiple instances of certain TLVs will cause
lldpd to continually allocate memory and leak the old memory.  As an
example, multiple instances of system name TLV will cause old values
to be dropped by the decoding routine.

Reported-at: https://github.com/openvswitch/ovs/pull/337
Reported-by: Jonas Rudloff <jonas.t.rudloff@gmail.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
src/daemon/protocols/lldp.c