Vasil Dimov
549c82ad3a
fuzz: use ConsumeBool() instead of !ConsumeBool()
...
The former is shorter and ends up with a "random" bool anyway.
2021-04-15 08:51:39 +02:00
Vasil Dimov
29ae1c13a5
fuzz: split FuzzedSock interface and implementation
...
Move the `FuzzedSock`'s implementation from `src/test/fuzz/util.h` to
`src/test/fuzz/util.cpp`.
A separate interface and implementation make the code more readable for
consumers who don't need to (better not) know the implementation
details.
2021-04-15 08:51:36 +02:00
Vasil Dimov
9668e43d8e
fuzz: make FuzzedSock::Wait() sometimes simulate an occurred event
2021-04-15 08:19:49 +02:00
Vasil Dimov
0c90ff1429
fuzz: set errno from FuzzedSock::Wait() if it simulates a failure
2021-04-15 08:19:48 +02:00
Vasil Dimov
5198a02de4
style: remove extra white space
2021-04-15 08:19:44 +02:00
MarcoFalke
33333755f2
fuzz: Fix uninitialized read in test
2021-04-06 12:43:33 +02:00
MarcoFalke
fa98f3f66e
fuzz: [refactor] Use ConsumeScript in signature_checker fuzz target
2021-03-30 09:30:43 +02:00
MarcoFalke
faa9ef49d1
fuzz: Add tx_pool fuzz targets
2021-03-18 18:43:52 +01:00
MarcoFalke
fad3d7625a
fuzz: Avoid initializing version to less than MIN_PEER_PROTO_VERSION
2021-01-23 20:04:37 +01:00
MarcoFalke
fa99e33aeb
fuzz: move-only FillNode implementation to cpp file
...
This allows to modify the implementation without having to recompile all
fuzz targets.
Can be reviewed with --color-moved=dimmed-zebra
2021-01-23 20:01:12 +01:00