summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-05-24 09:58:30 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-05-24 10:38:49 +0300
commit0d079e01e55c35f466dc4982d9c2964f81a70140 (patch)
treed53b0b1c60507f9e3ed1688adb3c7a53e74f3ecc /lib/if.c
parent150eb73054902511b4be78666ab9895a7509a4ce (diff)
bgpd: Check if FQDN capability length is in valid ranges
If FQDN capability comes as dynamic capability we should check if the encoding is proper. Before this patch we returned an error if the hostname/domainname length check was > end. But technically, if the length is also == end, this is a malformed capability, because we use the data incorrectly after we check the length. This causes heap overflow (when compiled with address-sanitizer). Signed-off-by: Iggy Frankovic <iggyfran@amazon.com> Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/if.c')
0 files changed, 0 insertions, 0 deletions