mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 02:11:03 +00: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…
Reference in a new issue