]> git.puffer.fish Git - matthieu/frr.git/commit
ospfclient: Provide some protection against blindly trusting input
authorDonald Sharp <sharpd@nvidia.com>
Mon, 5 Oct 2020 20:19:09 +0000 (16:19 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 9 Oct 2020 13:16:08 +0000 (09:16 -0400)
commitd7b4f53a0f58ae6e447f59abf250413d60e3d423
treea084cc2a926e4ed196b5d7543aa4ffccd9b541cc
parente13013d4bad0be7618296cd333cb56ade09d7c83
ospfclient: Provide some protection against blindly trusting input

Coverity rightly points out that blindly trusting the lsalen
from received data may not be the smartest thing to do.  Add
a bit of code to prevent us from blindly malloc'ing
too much memory.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfclient/ospf_apiclient.c