]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Prevent crash by accessing memory not owned. 7603/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 25 Nov 2020 14:49:28 +0000 (09:49 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 25 Nov 2020 14:49:28 +0000 (09:49 -0500)
commitcf0f13de2960b79b48aca72834764073f0f6d8e4
tree972a17ae7e0ce2b2301e9f7a8079b21301f08472
parentf286bcf5fc8a7ee2df8ba65e84bde548e04de800
ospfd: Prevent crash by accessing memory not owned.

When allocating memory for the `struct ospf_metric` we
were using `uint32_t` instead of the actual size of this
structure.  When we wrote to it we would be writing
into other people's memory.

Found-by: Amol Lad
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
ospfd/ospf_routemap.c