From 074cb6451b16158589d743488930963bcf4b024c Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 2 Oct 2019 11:20:17 +0000 Subject: tests: Add ParseHDKeypath(...) (bip32) fuzzing harness --- src/test/fuzz/parse_hd_keypath.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/fuzz/parse_hd_keypath.cpp (limited to 'src/test') diff --git a/src/test/fuzz/parse_hd_keypath.cpp b/src/test/fuzz/parse_hd_keypath.cpp new file mode 100644 index 0000000000..9a23f4b2d4 --- /dev/null +++ b/src/test/fuzz/parse_hd_keypath.cpp @@ -0,0 +1,13 @@ +// Copyright (c) 2009-2019 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#include +#include + +void test_one_input(const std::vector& buffer) +{ + const std::string keypath_str(buffer.begin(), buffer.end()); + std::vector keypath; + (void)ParseHDKeypath(keypath_str, keypath); +} -- cgit v1.2.3