/root/bitcoin/src/test/fuzz/parse_script.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) 2009-2020 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 <core_io.h> |
6 | | #include <script/script.h> |
7 | | #include <test/fuzz/fuzz.h> |
8 | | |
9 | | FUZZ_TARGET(parse_script) |
10 | 0 | { |
11 | 0 | const std::string script_string(buffer.begin(), buffer.end()); |
12 | 0 | try { |
13 | 0 | (void)ParseScript(script_string); |
14 | 0 | } catch (const std::runtime_error&) { |
15 | 0 | } |
16 | 0 | } |