]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Assign large enough data structure for coverity to be happy
authorDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 20:47:05 +0000 (16:47 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 12 May 2022 20:47:05 +0000 (16:47 -0400)
commitd87c526b1bb0f96ff4cf5fed03c7c434cc121078
treea1e0273c773d4afc0c35d84de4e77ce41b89d111
parent8128153ba40b3ee53dfa4a1f4c252635e6908596
bgpd: Assign large enough data structure for coverity to be happy

When implementing the bgp_packet_mpunreach_prefix a uint8_t array
of 3 bytes was created and then assigned to a label type, which
is 4 bytes and then various pointer work is done on it.  Eventually
coverity is complaining that the 3 -vs- 4 bytes is not enough
to properly dereference it.  Just make the uint8_t 4 bytes
and be done with it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_attr.c