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)
This commit is contained in:
Arthur Chan 2022-09-27 17:34:15 +01:00 committed by GitHub
parent 339988b33b
commit b23acb4d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):