aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/fuzzers/jigs/ber_decode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extra_tests/fuzzers/jigs/ber_decode.cpp')
-rw-r--r--src/extra_tests/fuzzers/jigs/ber_decode.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extra_tests/fuzzers/jigs/ber_decode.cpp b/src/extra_tests/fuzzers/jigs/ber_decode.cpp
index 0f5cc9f20..6ec9cadba 100644
--- a/src/extra_tests/fuzzers/jigs/ber_decode.cpp
+++ b/src/extra_tests/fuzzers/jigs/ber_decode.cpp
@@ -9,6 +9,9 @@
void fuzz(const uint8_t in[], size_t len)
{
+ if(len > 4096)
+ return;
+
try
{
DataSource_Memory input(in, len);