diff options
Diffstat (limited to 'src/extra_tests/fuzzers/jigs/redc_p256.cpp')
-rw-r--r-- | src/extra_tests/fuzzers/jigs/redc_p256.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extra_tests/fuzzers/jigs/redc_p256.cpp b/src/extra_tests/fuzzers/jigs/redc_p256.cpp index 86f0910a0..cbb7f4fef 100644 --- a/src/extra_tests/fuzzers/jigs/redc_p256.cpp +++ b/src/extra_tests/fuzzers/jigs/redc_p256.cpp @@ -10,6 +10,9 @@ void fuzz(const uint8_t in[], size_t len) { + if(len > 2*256/8) + return; + static const BigInt& prime = Botan::prime_p256(); static const BigInt prime_2 = prime * prime; static Botan::Modular_Reducer prime_redc(prime); |