abf: add API parameter n_paths range checks 07/37107/2
authorJon Loeliger <jdl@netgate.com>
Mon, 12 Sep 2022 17:41:06 +0000 (12:41 -0500)
committerNeale Ranns <neale@graphiant.com>
Mon, 19 Sep 2022 01:39:05 +0000 (01:39 +0000)
commit755b529c11d37f839dfba91127657a47390b88a2
tree0fc26749d794d070c721e65ce4768b80021610c1
parent6e3b3b76727c629b478e9ff9ed8836e595650a18
abf: add API parameter n_paths range checks

Also check for non-zero rpath length in CLI cmd.
While there, no need to use "else" after a return.
Also while there, notice and fix numerous input_line
buffer leaks and fix them.

Type: fix
Fixes: 669d07dc016757b856e1014a415996cf9f0ebc58

Signed-off-by: Jon Loeliger <jdl@netgate.com>
Change-Id: I18ea44b7b82e8938c3e793e7c2a04dfe157076d8
src/plugins/abf/abf.api
src/plugins/abf/abf_api.c
src/plugins/abf/abf_policy.c