提交 3ce07130 编写于 作者: J Jinliang Li 提交者: skylarCai

mbedtls: fix whitescan bug in library/cipher.c

[Detail]
Remove dead code in library/cipher.c
CWE561: Code can never be reached because of a logical contradiction

[Verified Cases]
Build Pass: <py_engine_demo>
Test Pass:  <py_engine_demo>
Signed-off-by: NJinliang Li <ljl150821@alibaba-inc.com>
上级 74b904ab
......@@ -459,11 +459,6 @@ int mbedtls_cipher_update( mbedtls_cipher_context_t *ctx, const unsigned char *i
*/
if( 0 != ilen )
{
if( 0 == block_size )
{
return( MBEDTLS_ERR_CIPHER_INVALID_CONTEXT );
}
/* Encryption: only cache partial blocks
* Decryption w/ padding: always keep at least one whole block
* Decryption w/o padding: only cache partial blocks
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册