Commit 6f6b2bb
committed
Merge bitcoin#35808: fuzz: reset connman state in p2p targets
d29b22d fuzz: reset connman state in p2p targets (Hao Xu)
Pull request description:
Resets `ConnmanTestMsg` at the start of each input in `cmpctblock` and `p2p_handshake`, matching the other reused-connman fuzz targets and preventing sticky `CConnman` state from leaking between corpus inputs.
Before this, deterministic-fuzz-coverage showed single inputs were stable, but all-input directory runs were not:
```diff
cmpctblock, src/net.cpp:4172
- Branch (4172:9): [True: 1.21k, False: 33.0k]
+ Branch (4172:9): [True: 613, False: 33.6k]
- Branch (4172:72): [True: 901, False: 311]
+ Branch (4172:72): [True: 497, False: 116]
```
```diff
p2p_handshake, src/net.cpp:4172
- Branch (4172:9): [True: 98, False: 1.67k]
+ Branch (4172:9): [True: 743, False: 1.03k]
- Branch (4172:72): [True: 90, False: 8]
+ Branch (4172:72): [True: 612, False: 131]
```
With the resets, `deterministic-fuzz-coverage` passed for both `cmpctblock` and `p2p_handshake`.
ACKs for top commit:
nervana21:
re-tACK d29b22d
maflcko:
lgtm ACK d29b22d
Tree-SHA512: bd445ae33ab7f9850046e3de4e318bee9ae7b38ee77ee282d0f5c3a88a4b67610dd00faef2af913a4d7d42bfc42b957855b2d85f1849f77823149baa089afce22 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments