mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
709d4be78f
The current code has issues when sizeof(long) <> sizeof(size_t). The two types are assumed to be interchangeable and them being different will cause crashes and endless loops. This fix limits the maximum chunk size for many of the symmetric ciphers to 2^30 bytes. This chunk size limits the amount of data that will be encrypted/decrypted in one lump. The code internally handles block of data later than the chunk limit, so this will present no difference to the caller. Any loss of efficiency due to limiting the chunking to 1Gbyte rather than more should be insignificant. Fixes Coverity issues: 1508498, 1508500 - 1508505, 1508507 - 1508527, 1508529 - 1508533, 1508535 - 1508537, 1508539, 1508541 - 1508549, 1508551 - 1508569 & 1508571 - 1508582. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18997) |
||
---|---|---|
.. | ||
__DECC_INCLUDE_EPILOGUE.H | ||
__DECC_INCLUDE_PROLOGUE.H | ||
aes_platform.h | ||
aria.h | ||
asn1_dsa.h | ||
asn1.h | ||
asn1err.h | ||
async.h | ||
asyncerr.h | ||
bioerr.h | ||
bn_conf.h.in | ||
bn_dh.h | ||
bn_srp.h | ||
bn.h | ||
bnerr.h | ||
buffererr.h | ||
chacha.h | ||
cmll_platform.h | ||
cmperr.h | ||
cmserr.h | ||
comperr.h | ||
conferr.h | ||
context.h | ||
crmferr.h | ||
cryptlib.h | ||
cryptoerr.h | ||
cterr.h | ||
ctype.h | ||
decoder.h | ||
decodererr.h | ||
des_platform.h | ||
dh.h | ||
dherr.h | ||
dsa.h | ||
dsaerr.h | ||
dso_conf.h.in | ||
ec.h | ||
ecerr.h | ||
ecx.h | ||
encoder.h | ||
encodererr.h | ||
engine.h | ||
engineerr.h | ||
err.h | ||
ess.h | ||
esserr.h | ||
evp.h | ||
evperr.h | ||
httperr.h | ||
lhash.h | ||
md32_common.h | ||
modes.h | ||
objects.h | ||
objectserr.h | ||
ocsperr.h | ||
pem.h | ||
pemerr.h | ||
pkcs7.h | ||
pkcs7err.h | ||
pkcs12err.h | ||
poly1305.h | ||
ppc_arch.h | ||
punycode.h | ||
rand_pool.h | ||
rand.h | ||
randerr.h | ||
riscv_arch.def | ||
riscv_arch.h | ||
rsa.h | ||
rsaerr.h | ||
security_bits.h | ||
sha.h | ||
siphash.h | ||
siv.h | ||
sm2.h | ||
sm2err.h | ||
sm4_platform.h | ||
sm4.h | ||
sparc_arch.h | ||
sparse_array.h | ||
store.h | ||
storeerr.h | ||
tserr.h | ||
types.h | ||
uierr.h | ||
x509.h | ||
x509err.h | ||
x509v3err.h |