mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 07:28:41 +00:00
![]() Since we are writing into the name field which is PBR_MAP_NAMELEN size, we are expecting this to field to be at max 100 bytes. Newer compilers understand that the %s portion may be up to 100 bytes( because of the size of the string. The %u portion is expected to be 10 bytes. So in `theory` there are situations where we might truncate. The reality this is never going to happen( who is going to create a nexthop group name that is over say 30 characters? ). As such we are expecting the calling function to subtract 10 from the size_t l before we pass it in to get around this new gcc fun. Fixes: #2163 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
pbr_debug.c | ||
pbr_debug.h | ||
pbr_main.c | ||
pbr_map.c | ||
pbr_map.h | ||
pbr_memory.c | ||
pbr_memory.h | ||
pbr_nht.c | ||
pbr_nht.h | ||
pbr_vty.c | ||
pbr_vty.h | ||
pbr_zebra.c | ||
pbr_zebra.h | ||
pbrd.conf.sample | ||
subdir.am |