summaryrefslogtreecommitdiff
path: root/eigrpd/eigrp_reply.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-02 20:12:31 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-02 20:14:36 -0400
commit29d5a146344b47ce46217c84daf28b1a0cee1185 (patch)
treebf68462eca701dffe932c1760a15830284ba6efe /eigrpd/eigrp_reply.c
parentd71b0564c29fdd21c0461c04e616f3f0c82964e2 (diff)
pbrd: Fix nearly impossible truncation
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>
Diffstat (limited to 'eigrpd/eigrp_reply.c')
0 files changed, 0 insertions, 0 deletions