MarcoFalke
0f55294cc1
Merge #18875 : fuzz: Stop nodes in process_message* fuzzers
...
fab860aed4878b831dae463e1ee68029b66210f5 fuzz: Stop nodes in process_message* fuzzers (MarcoFalke)
6666c828e072a5e99ea0c16394ca3e5b9de07409 fuzz: Give CNode ownership to ConnmanTestMsg in process_message fuzz harness (MarcoFalke)
Pull request description:
Background is that I saw an integer overflow in net_processing
```
#30629113 REDUCE cov: 25793 ft: 142917 corp: 3421/2417Kb lim: 4096 exec/s: 89 rss: 614Mb L: 1719/4096 MS: 1 EraseBytes-
net_processing.cpp:977:25: runtime error: signed integer overflow: 2147483624 + 100 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior net_processing.cpp:977:25 in
net_processing.cpp:985:9: runtime error: signed integer overflow: -2147483572 - 100 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior net_processing.cpp:985:9 in
```
Telling from the line numbers, it looks like `nMisbehavior` wrapped around.
Fix that by calling `StopNodes` after each exec, which should clear the node state and thus `nMisbehavior`.
ACKs for top commit:
practicalswift:
ACK fab860aed4878b831dae463e1ee68029b66210f5
Tree-SHA512: 891c081d5843565d891aec028b6c27ef3fa39bc40ae78238e81d8f784b4d4b49cb870998574725a5159dd03aeeb2e0b9bc3d3bb51d57d1231ef42e3394b2d639
2020-06-03 07:23:41 -04:00
..
2020-06-02 07:32:15 -04:00
2020-05-20 08:27:07 -04:00
2020-04-16 13:33:09 -04:00
2020-01-28 17:00:01 +01:00
2020-04-07 13:57:34 -07:00
2020-05-22 11:59:58 -04:00
2020-06-02 18:11:52 -04:00
2020-01-28 16:59:07 +01:00
2020-04-30 18:02:04 +08:00
2020-05-26 07:33:43 -04:00
2020-03-30 16:10:30 -07:00
2020-05-20 07:30:29 -04:00
2020-06-02 08:48:04 +02:00
2020-06-02 07:04:19 -04:00
2020-06-02 07:32:15 -04:00
2019-03-31 11:41:05 -07:00
2020-05-29 17:22:07 -04:00
2020-06-03 07:23:41 -04:00
2020-02-09 07:44:29 -08:00
2020-05-27 19:31:33 -04:00
2020-06-02 18:11:52 -04:00
2020-04-16 13:33:09 -04:00
2019-10-14 13:24:54 +03:00
2019-12-30 10:42:20 +13:00
2020-01-02 11:05:36 -08:00
2020-05-06 14:59:28 +02:00
2020-03-04 14:24:19 +01:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-03-10 09:52:53 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-10-16 08:56:57 -07:00
2019-09-05 13:25:11 +12:00
2020-05-27 07:16:10 -04:00
2020-04-16 13:33:09 -04:00
2020-05-25 12:36:48 -04:00
2020-05-13 16:20:13 -04:00
2020-05-28 09:55:39 +03:00
2020-05-28 09:55:39 +03:00
2020-04-20 14:57:48 +00:00
2020-05-26 17:27:15 -04:00
2020-04-28 19:27:22 +02:00
2020-05-20 07:30:29 -04:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-04-03 16:29:26 +02:00
2020-04-16 13:33:09 -04:00
2020-05-04 19:53:58 +03:00
2020-05-03 18:42:14 +00:00
2020-05-06 13:15:28 +02:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2019-12-30 10:42:20 +13:00
2020-05-22 01:40:31 +09:00
2019-12-30 10:42:20 +13:00
2020-04-08 14:45:27 +00:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-05-01 07:39:00 -04:00
2020-05-20 07:30:29 -04:00
2020-04-26 12:16:22 +12:00
2019-12-30 10:42:20 +13:00
2019-03-31 11:41:05 -07:00
2020-05-21 06:53:39 -04:00
2020-05-13 16:20:13 -04:00
2020-05-19 10:41:44 -04:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-05-21 09:55:59 -04:00
2020-05-13 16:20:13 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2020-05-28 09:54:24 +03:00
2020-05-28 09:54:24 +03:00
2020-05-27 14:51:49 +12:00
2020-04-29 00:31:41 -07:00
2020-01-28 17:01:48 +01:00
2020-05-12 18:03:39 +03:00
2020-04-01 12:49:15 +02:00
2020-05-12 09:47:06 -04:00
2019-11-21 21:13:08 +01:00
2020-04-05 01:01:13 +02:00
2020-04-05 10:46:24 +08:00
2020-05-30 10:37:01 +00:00
2020-04-16 13:33:09 -04:00
2020-03-30 16:09:51 -07:00
2020-03-30 16:09:51 -07:00
2020-04-16 13:33:09 -04:00
2020-04-16 13:33:09 -04:00
2020-01-08 12:35:59 +00:00
2020-04-16 13:33:09 -04:00
2020-05-31 18:20:17 -04:00
2020-05-21 09:55:58 -04:00
2019-10-29 11:30:12 +02:00
2020-05-30 02:07:48 +10:00
2020-05-27 19:31:33 -04:00
2020-05-06 14:59:28 +02:00
2020-05-20 07:30:29 -04:00
2020-01-22 20:20:45 +01:00
2020-01-08 12:35:59 +00:00
2020-05-05 04:45:59 +03:00
2020-05-05 04:45:59 +03:00
2019-12-30 10:42:20 +13:00
2020-04-16 13:33:09 -04:00
2020-01-23 16:35:06 -05:00
2020-04-30 18:02:03 +08:00
2020-05-31 18:20:17 -04:00
2020-05-31 18:20:17 -04:00
2020-04-16 13:33:09 -04:00
2020-05-27 12:37:08 -04:00
2019-12-30 10:42:20 +13:00
2020-04-23 13:59:48 -04:00
2020-05-15 08:58:49 -04:00
2020-04-30 09:19:14 -04:00
2020-04-16 13:33:09 -04:00
2019-11-12 14:50:44 -08:00
2020-05-21 06:53:39 -04:00
2020-04-16 13:33:09 -04:00
2020-03-10 09:47:32 -04:00
2020-05-24 10:35:00 -07:00
2020-04-30 11:16:56 +02:00
2019-12-30 10:42:20 +13:00
2020-05-28 09:55:04 +03:00
2020-05-28 09:55:04 +03:00
2019-12-30 10:42:20 +13:00
2020-05-28 09:54:24 +03:00
2020-05-05 04:45:59 +03:00
2019-12-06 10:02:08 +01:00
2020-01-08 12:35:59 +00:00
2019-12-30 10:42:20 +13:00
2020-05-20 07:30:29 -04:00
2020-01-15 02:18:00 +07:00
2020-05-15 09:23:55 -04:00
2020-05-25 11:27:07 -07:00
2020-05-19 02:49:32 +03:00
2020-05-19 02:49:32 +03:00
2020-01-23 16:35:08 -05:00
2020-01-23 16:35:08 -05:00
2020-04-16 13:33:09 -04:00
2020-06-02 07:32:15 -04:00
2020-05-21 09:56:25 -04:00
2020-05-22 16:30:07 -04:00
2020-05-22 16:30:07 -04:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00
2019-12-30 10:42:20 +13:00