summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd_common.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-05-14 16:26:27 -0400
committerDonald Sharp <sharpd@sharpd-mlt.client.nvidia.com>2022-05-17 09:17:37 -0400
commite5b71bc69b7e4b30aaee57a26a4ea0ee036e4f16 (patch)
treef13c10c8e74f9b43493b61b6ddc2ab6a6997a42c /pimd/pim_cmd_common.c
parent44937c5450320eb119f9a4ea0c9bd32600d8e007 (diff)
bgpd: Fix coverity SA issue with copying over prefix data
in bgp_nlri_parse_ip there is a `sanity` check to ensure that the prefix length as specified by the packet will fit inside of a `struct prefix` correctly. The problem here of course is that this is only v4 / v6 unicast/multicast parsing and the bytes will never be more than 16, but we are copying into a part of the struct prefix that is only 16 bytes, but with this check the length may be up to 47 bytes( but not really possible ). Limit the size check to at most 16 bytes (since we are only handling v4 or v6 addresses here ) Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_cmd_common.c')
0 files changed, 0 insertions, 0 deletions