mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +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, \
|
type b, \
|
||||||
int *err) \
|
int *err) \
|
||||||
{ \
|
{ \
|
||||||
if (a > max / b) \
|
if (b != 0 && a > max / b) \
|
||||||
*err |= 1; \
|
*err |= 1; \
|
||||||
return a * b; \
|
return a * b; \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user