]> git.puffer.fish Git - mirror/frr.git/commit
zebra: untrusted array index (Coverity 1470113) 2508/head
authorpaco <paco@voltanet.io>
Wed, 20 Jun 2018 17:25:06 +0000 (19:25 +0200)
committerpaco <paco@voltanet.io>
Wed, 20 Jun 2018 17:25:06 +0000 (19:25 +0200)
commit7f61ea7bd47bfd86a2c873870507281b1837dcdd
tree46dec362108478c1e65efe877cc084d047df6dee
parent76cd18c9ddfbdb8f36b60fac61ebb4d64d12d079
zebra: untrusted array index (Coverity 1470113)

This is a correction over 32ac96b2ba9693696d2f1156af1b80985d4e55bb, so
removing the forced string null termination doesn't involve a worse situation
than before (the underflow check should protect for the case of receiving
an incomplete buffer, which would be the cause of non-zero terminated string)

Signed-off-by: F. Aragon <paco@voltanet.io>
zebra/zebra_netns_notify.c