Bitcoin Core
31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
test
fuzz
parse_script.cpp
Go to the documentation of this file.
1
// Copyright (c) 2009-present 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
{
11
const
std::string
script_string
(buffer.begin(), buffer.end());
12
try
{
13
(
void
)
ParseScript
(
script_string
);
14
}
catch
(
const
std::runtime_error&) {
15
}
16
}
ParseScript
CScript ParseScript(const std::string &s)
Definition
core_io.cpp:94
core_io.h
fuzz.h
FUZZ_TARGET
#define FUZZ_TARGET(...)
Definition
fuzz.h:35
script.h
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:73
Generated on Thu Apr 16 2026 09:42:38 for Bitcoin Core by
1.10.0