diff options
| author | Vasil Dimov <[email protected]> | 2020-03-18 12:58:22 +0100 |
|---|---|---|
| committer | Vasil Dimov <[email protected]> | 2020-03-18 13:03:26 +0100 |
| commit | 7d8e1dec3b26074df1533f715871f79c956cc224 (patch) | |
| tree | 3713688114d74c0520c2ea22e0fc35767664099c /src/validationinterface.cpp | |
| parent | Merge #18289: refactor: Make scheduler methods type safe (diff) | |
| download | discoin-7d8e1dec3b26074df1533f715871f79c956cc224.tar.xz discoin-7d8e1dec3b26074df1533f715871f79c956cc224.zip | |
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 'src/validationinterface.cpp')
0 files changed, 0 insertions, 0 deletions