diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-17 08:25:12 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-10-11 11:16:44 -0400 |
| commit | 2e37407f9d27dec02a49260ac3218126522dc666 (patch) | |
| tree | f3a0f3ebaa91ceaa200fbf6ac2312e70a21e612c /python/clidef.py | |
| parent | 62270cc3ee99318cbddd3000af4debee35c058c0 (diff) | |
ospf6d, tests: Prevent use after free
The code pattern:
for (ALL_LSDB(lsdb, lsa)) {
remove_lsa(lsa)
}
has a use after free in ALL_LSDB, since we ask for the next pointer,
after it has been freed.
Modify the code such that we grab the next pointer before we can
possibly free it.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'python/clidef.py')
0 files changed, 0 insertions, 0 deletions
