First steps towards running fuzz tests with -fsanitize=integer
and not having it fail. This PR fixes the complaints in the src/test/fuzz
directory only. There are other complaints that are not handled because I thought the scope of the PR would sprawl.
c0f40ba767dcbcd89223eb7f7678d8d4263a9f1a fixes
0SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change test/fuzz/FuzzedDataProvider.h:108:27 in
1test/fuzz/FuzzedDataProvider.h:87:51
2
3SUMMARY: UndefinedBehaviorSanitizer: unsigned-integer-overflow test/fuzz/FuzzedDataProvider.h:108:31 in
4test/fuzz/FuzzedDataProvider.h:108:31
5
6SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change /usr/local/opt/llvm/bin/../include/c++/v1/memory:1876:35
03826e53ba292ae2434acd21424e82adf40804dc fixes
0SUMMARY: UndefinedBehaviorSanitizer: unsigned-integer-overflow test/fuzz/FuzzedDataProvider.h:108:31 in
1test/fuzz/util.h:166:35
2
3SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change test/fuzz/FuzzedDataProvider.h:108:27 in
4test/fuzz/script.cpp:145:37
febe0f8a3c3c469a0d65c2d1f35eda1e04f9bcf1 fixes
0SUMMARY: UndefinedBehaviorSanitizer: implicit-integer-sign-change test/fuzz/FuzzedDataProvider.h:108:27 in
1test/fuzz/crypto_chacha20_poly1305_aead.cpp:63:25
d698eadfac153d426b10c730b95eed2c06373baf fixes
0test/fuzz/pow.cpp:46:39: runtime error: implicit conversion from type 'long' of value 4294967712 (64-bit, signed) to type 'uint32_t' (aka 'unsigned int') changed the value to 416 (32-bit, unsigned)