Skip to content

Commit fa71285

Browse files
author
MarcoFalke
committed
fuzz: Limit fuzz buffer size in script_flags target
1 parent fa6b87b commit fa71285

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/fuzz/script_flags.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
FUZZ_TARGET(script_flags)
1414
{
15+
if (buffer.size() > 100'000) return;
1516
DataStream ds{buffer};
1617
try {
1718
const CTransaction tx(deserialize, TX_WITH_WITNESS, ds);

0 commit comments

Comments
 (0)