Page MenuHomePhabricator

[avalanche] Fix a use after free bug in the peer manager unit tests
ClosedPublic

Authored by Fabien on Nov 21 2023, 15:34.

Details

Summary

D14825 introduced a new facility to clear the peer set in the tests, however the loop doesn't account for the rehash occuring by the erasal.

Test Plan

With ASAN:

ninja check-avalanche-peermanager_tests

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable