mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-22 22:20:52 +00:00
Clean up of formatting, and potential integer overflow fix
This commit is contained in:
parent
d241f1cf17
commit
a592dcc1c6
@ -259,7 +259,7 @@ int mbedtls_cipher_cmac_update( mbedtls_cipher_context_t *ctx,
|
||||
/* Is their data still to process from the last call, that's equal to
|
||||
* or greater than a block? */
|
||||
if( cmac_ctx->unprocessed_len > 0 &&
|
||||
ilen + cmac_ctx->unprocessed_len > block_size )
|
||||
ilen > block_size - cmac_ctx->unprocessed_len )
|
||||
{
|
||||
memcpy( &cmac_ctx->unprocessed_block[cmac_ctx->unprocessed_len],
|
||||
input,
|
||||
|
Loading…
x
Reference in New Issue
Block a user