diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-03-18 12:58:22 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2020-03-18 13:03:26 +0100 |
commit | 7d8e1dec3b26074df1533f715871f79c956cc224 (patch) | |
tree | 3713688114d74c0520c2ea22e0fc35767664099c /test | |
parent | ce87d5613a5537b68cf23e7bc25c1e3770704ff9 (diff) |
net: fix use-after-free in tests
In PeerLogicValidation::PeerLogicValidation() we would schedule a lambda
function to execute later, capturing the local variable
`consensusParams` by reference.
Presumably this was considered safe because `consensusParams` is a
reference itself to a global variable which is not supposed to change,
but it can in tests.
Fixes https://github.com/bitcoin/bitcoin/issues/18372
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions