Skip to content

Commit 5c73645

Browse files
author
MarcoFalke
committed
Merge #18319: fuzz: Add missing ECC_Start to key_io test
bbbbb53 fuzz: Add missing ECC_Start to key_io test (MarcoFalke) Pull request description: Fixes ``` $ ./src/test/fuzz/key_io ../btc_qa_assets/fuzz_seed_corpus/key_io INFO: Seed: 2023332714 INFO: Loaded 1 modules (470791 inline 8-bit counters): 470791 [0x55d4f15d46e0, 0x55d4f16475e7), INFO: Loaded 1 PC tables (470791 PCs): 470791 [0x55d4f16475e8,0x55d4f1d76658), INFO: 203 files found in ../btc_qa_assets/fuzz_seed_corpus/key_io INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes INFO: seed corpus: files: 203 min: 1b max: 465b total: 16482b rss: 99Mb key.cpp:154:39: runtime error: null pointer passed as argument 1, which is declared to never be null secp256k1/include/secp256k1.h:521:3: note: nonnull attribute specified here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior key.cpp:154:39 in ACKs for top commit: practicalswift: ACK bbbbb53 Tree-SHA512: a0deaf62489a8a6be610d9b23bbcc457f9e55494e9421b93b0e361f14dfa033f5c4dfabd3c760e01ae7735d910930dfd7e0981a33717d9c685bb311592457308
2 parents 309b0c4 + bbbbb53 commit 5c73645

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/fuzz/key_io.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616

1717
void initialize()
1818
{
19-
SelectParams(CBaseChainParams::REGTEST);
19+
static const ECCVerifyHandle verify_handle;
20+
ECC_Start();
21+
SelectParams(CBaseChainParams::MAIN);
2022
}
2123

2224
void test_one_input(const std::vector<uint8_t>& buffer)

0 commit comments

Comments
 (0)