[openssl-dev] [openssl.org #4561] BUG: openssl-1.0.2h, evp_enc.c, non-portable bitwise operation

Loic Etienne via RT rt at openssl.org
Mon Jun 6 18:26:50 UTC 2016


crypto/evp/evp_enc.c, EVP_EncryptUpdate
line 337: inl & (ctx->block_mask)
line 367: inl & (bl - 1) /* with bl = ctx->cipher->block_size */

Instead, the more portable inl % ctx->cipher->block_size should be used;
or, alternatively, unsigned integers should be used.


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4561
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list