]> git.puffer.fish Git - mirror/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)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Oct 2022 18:51:35 +0000 (18:51 +0000)
commited22409dc5cf0969a74310c1c2807d873a5a56f2
treea1eb778f99d7b150f5cbd2ccc324b96cd35339de
parentf05026875d93f26df1350beee505d4718ee83c0c
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>
(cherry picked from commit d2aeac38708d93fb028d6a53e6eea317f0c06d1b)
ospfclient/ospf_apiclient.c