From b23acb4d4266ab6552560f2766390b0478c12f40 Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Tue, 27 Sep 2022 17:34:15 +0100 Subject: [PATCH] pyca-cryptography: Fix issue 48484 integer overflow (#8592) Fix error handling or other false-positive bugs reported for projects issues. - 48484 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48484) --- projects/cryptography/fuzz_dh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/cryptography/fuzz_dh.py b/projects/cryptography/fuzz_dh.py index 0639f9b85..779e20828 100644 --- a/projects/cryptography/fuzz_dh.py +++ b/projects/cryptography/fuzz_dh.py @@ -26,7 +26,7 @@ def TestInput(input_bytes): try: parameters = dh.generate_parameters( generator=(2 if fdp.ConsumeBool() else 5), - key_size=fdp.ConsumeInt(15) + key_size=fdp.ConsumeInt(4) ) except ValueError as e: if "DH key_size must be at least 512 bits" not in str(e):