aboutsummaryrefslogtreecommitdiffstats
path: root/src/extra_tests/fuzzers/jigs/bn_sqr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extra_tests/fuzzers/jigs/bn_sqr.cpp')
-rw-r--r--src/extra_tests/fuzzers/jigs/bn_sqr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extra_tests/fuzzers/jigs/bn_sqr.cpp b/src/extra_tests/fuzzers/jigs/bn_sqr.cpp
index 2bc5ebe33..aa76067f7 100644
--- a/src/extra_tests/fuzzers/jigs/bn_sqr.cpp
+++ b/src/extra_tests/fuzzers/jigs/bn_sqr.cpp
@@ -11,6 +11,9 @@
void fuzz(const uint8_t in[], size_t len)
{
+ if(len > 8192/8)
+ return;
+
Botan::BigInt x = Botan::BigInt::decode(in, len);
Botan::BigInt x_sqr = square(x);