mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-24 17:21:48 +08:00
Clean up of formatting, and potential integer overflow fix
This commit is contained in:
parent
2127932fb8
commit
8254b6c9f3
@ -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