mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-29 21:42:32 +02:00
fuzz: Limit fuzz buffer size in script_flags target
This commit is contained in:
parent
fa6b87b9ee
commit
fa71285b73
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
FUZZ_TARGET(script_flags)
|
FUZZ_TARGET(script_flags)
|
||||||
{
|
{
|
||||||
|
if (buffer.size() > 100'000) return;
|
||||||
DataStream ds{buffer};
|
DataStream ds{buffer};
|
||||||
try {
|
try {
|
||||||
const CTransaction tx(deserialize, TX_WITH_WITNESS, ds);
|
const CTransaction tx(deserialize, TX_WITH_WITNESS, ds);
|
||||||
|
Loading…
Reference in New Issue
Block a user