]> git.puffer.fish Git - matthieu/frr.git/commit
ospfclient: Ensure ospf_apiclient_lsa_originate cannot accidently write into stack
authorDonald Sharp <sharpd@nvidia.com>
Wed, 20 Jul 2022 20:43:17 +0000 (16:43 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 10 Oct 2022 12:04:09 +0000 (08:04 -0400)
commitd8d77d3733bc299ed5dd7b44c4d464ba2bfed288
tree132b55f9ce24fa98288eb5f38f7e06c7927dc777
parentc88537e806835fa6fb1308537fc6ddda1b1e2fa5
ospfclient: Ensure ospf_apiclient_lsa_originate cannot accidently write into stack

Even though OSPF_MAX_LSA_SIZE is quite large and holds the upper bound
on what can be written into a lsa, let's add a small check to ensure
it is not possible to do a bad thing.

This wins one of the long standing bug awards.  2003!

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