]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix crashes caused by missing input validation
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 19 Oct 2018 18:54:47 +0000 (15:54 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 20 Oct 2018 15:39:05 +0000 (12:39 -0300)
commitaec9d23fb4bdfbfe5beb4b0fd5e2f51d12777d69
tree645e123bf3b55b35e17afe16c47e308ddc659ac0
parent71355f5426a26188c9f15f6da4bb14403da1ac8f
bgpd: fix crashes caused by missing input validation

The rfapi code wasn't checking if strtoul() succeeded or not when parsing
the list of labels. Fix the affected commands by not allowing the user
to enter a non-numeric input.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/rfapi/bgp_rfapi_cfg.c