File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ FUZZ_TARGETS = \
33
33
test/fuzz/messageheader_deserialize \
34
34
test/fuzz/netaddr_deserialize \
35
35
test/fuzz/out_point_deserialize \
36
+ test/fuzz/parse_hd_keypath \
36
37
test/fuzz/parse_iso8601 \
37
38
test/fuzz/partial_merkle_tree_deserialize \
38
39
test/fuzz/partially_signed_transaction_deserialize \
@@ -518,6 +519,12 @@ test_fuzz_tx_out_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
518
519
test_fuzz_tx_out_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
519
520
test_fuzz_tx_out_LDADD = $(FUZZ_SUITE_LD_COMMON)
520
521
522
+ test_fuzz_parse_hd_keypath_SOURCES = $(FUZZ_SUITE) test/fuzz/parse_hd_keypath.cpp
523
+ test_fuzz_parse_hd_keypath_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
524
+ test_fuzz_parse_hd_keypath_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
525
+ test_fuzz_parse_hd_keypath_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS)
526
+ test_fuzz_parse_hd_keypath_LDADD = $(FUZZ_SUITE_LD_COMMON)
527
+
521
528
endif # ENABLE_FUZZ
522
529
523
530
nodist_test_test_bitcoin_SOURCES = $(GENERATED_TEST_FILES)
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2009-2019 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ #include < test/fuzz/fuzz.h>
6
+ #include < util/bip32.h>
7
+
8
+ void test_one_input (const std::vector<uint8_t >& buffer)
9
+ {
10
+ const std::string keypath_str (buffer.begin (), buffer.end ());
11
+ std::vector<uint32_t > keypath;
12
+ (void )ParseHDKeypath (keypath_str, keypath);
13
+ }
You can’t perform that action at this time.
0 commit comments