aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2020-03-18 12:58:22 +0100
committerVasil Dimov <vd@FreeBSD.org>2020-03-18 13:03:26 +0100
commit7d8e1dec3b26074df1533f715871f79c956cc224 (patch)
tree3713688114d74c0520c2ea22e0fc35767664099c /configure.ac
parentce87d5613a5537b68cf23e7bc25c1e3770704ff9 (diff)
downloadbitcoin-7d8e1dec3b26074df1533f715871f79c956cc224.tar.xz
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 'configure.ac')
0 files changed, 0 insertions, 0 deletions