diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-05-16 18:15:13 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-05-30 10:37:01 +0000 |
commit | 8de72711c685e638fa54d485694fb1b1af024adc (patch) | |
tree | 0f6d3e4884b93e8a60f3d70cd512bc0fadd51a76 /src/test/fuzz/string.cpp | |
parent | c571ecb07145b4ce8c17ca80489f8f1497388c4d (diff) | |
download | bitcoin-8de72711c685e638fa54d485694fb1b1af024adc.tar.xz |
tests: Fill fuzzing coverage gaps for functions in script/script.h, script/script_error.h and script/standard.h
Diffstat (limited to 'src/test/fuzz/string.cpp')
-rw-r--r-- | src/test/fuzz/string.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/fuzz/string.cpp b/src/test/fuzz/string.cpp index 50984b1aef..271062dc95 100644 --- a/src/test/fuzz/string.cpp +++ b/src/test/fuzz/string.cpp @@ -12,6 +12,7 @@ #include <rpc/server.h> #include <rpc/util.h> #include <script/descriptor.h> +#include <script/script.h> #include <serialize.h> #include <streams.h> #include <test/fuzz/FuzzedDataProvider.h> @@ -89,6 +90,10 @@ void test_one_input(const std::vector<uint8_t>& buffer) (void)urlDecode(random_string_1); (void)ValidAsCString(random_string_1); (void)_(random_string_1.c_str()); + try { + throw scriptnum_error{random_string_1}; + } catch (const std::runtime_error&) { + } { CDataStream data_stream{SER_NETWORK, INIT_PROTO_VERSION}; |