diff options
author | Pauli <pauli@openssl.org> | 2022-03-15 14:28:07 +1100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2022-03-30 10:10:25 +1100 |
commit | 330ff7e67d2ecc1c298fe7c4347c2109b4a979de (patch) | |
tree | 3aa2bf60d150b000cf64ff82e624b78dfc12e96a /doc | |
parent | 4157a32867e6643da8daee94e836aaa18b9feed6 (diff) |
Use safe math to computer sizes.
The sizes are rounded via the expression: (cmpl + 7) / 8 which overflows if
cmpl is near to the type's maximum. Instead we use the safe_math function to
computer this without any possibility of error.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17884)
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions