mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
Avoid divide by 0 exception
CLA: trivial Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19310)
This commit is contained in:
parent
b85d53c167
commit
3189e12733
@ -183,7 +183,7 @@
|
||||
type b, \
|
||||
int *err) \
|
||||
{ \
|
||||
if (a > max / b) \
|
||||
if (b != 0 && a > max / b) \
|
||||
*err |= 1; \
|
||||
return a * b; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user