summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-25 09:49:28 -0500
committerDonald Sharp <sharpd@nvidia.com>2020-11-25 09:49:28 -0500
commitcf0f13de2960b79b48aca72834764073f0f6d8e4 (patch)
tree972a17ae7e0ce2b2301e9f7a8079b21301f08472 /lib/memory.c
parentf286bcf5fc8a7ee2df8ba65e84bde548e04de800 (diff)
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>
Diffstat (limited to 'lib/memory.c')
0 files changed, 0 insertions, 0 deletions