File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
+ #include < test/fuzz/FuzzedDataProvider.h>
5
6
#include < test/fuzz/fuzz.h>
7
+ #include < test/fuzz/util.h>
6
8
#include < util/bip32.h>
7
9
10
+ #include < cstdint>
11
+ #include < vector>
12
+
8
13
void test_one_input (const std::vector<uint8_t >& buffer)
9
14
{
10
15
const std::string keypath_str (buffer.begin (), buffer.end ());
11
16
std::vector<uint32_t > keypath;
12
17
(void )ParseHDKeypath (keypath_str, keypath);
18
+
19
+ FuzzedDataProvider fuzzed_data_provider (buffer.data (), buffer.size ());
20
+ const std::vector<uint32_t > random_keypath = ConsumeRandomLengthIntegralVector<uint32_t >(fuzzed_data_provider);
21
+ (void )FormatHDKeypath (random_keypath);
22
+ (void )WriteHDKeypath (random_keypath);
13
23
}
You can’t perform that action at this time.
0 commit comments