]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: fix LLDP-MED location parsing in liblldpctl fix/lldp-med-loc-parsing 422/head
authorVincent Bernat <vincent@bernat.ch>
Sun, 6 Dec 2020 13:21:04 +0000 (14:21 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 6 Dec 2020 13:24:44 +0000 (14:24 +0100)
commit5c3479463a919193213213e2d8634c754c09aa51
tree35acccfef46e8fd2ec3f77ea07640fb4da66b5d3
parent9b50cef92a8bed699fb5205974001228556af634
lib: fix LLDP-MED location parsing in liblldpctl

Some bounds were not checked correctly when parsing LLDP-MED civic
location fields. This triggers out-of-bound reads (no write) in
lldpcli, ultimately leading to a crash.

Fix #420
NEWS
src/lib/atoms/med.c
tests/integration/data/med-loc-malformed.pcap [new file with mode: 0644]
tests/integration/test_pcap.py