mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Add missing local variable initialization
These issues were flagged by Coverity as instances where a local variable may be used prior to being initialized. Please note that none of these changes fixes any particular bug, this is just an attempt to add more robustness. Signed-off-by: Leonid Rozenboim <leonid.rozenboim@oracle.com>
This commit is contained in:
committed by
Paul Elliott
parent
1c7c5969ea
commit
a3008e7e2e
@ -430,7 +430,7 @@ int mbedtls_gcm_update( mbedtls_gcm_context *ctx,
|
||||
const unsigned char *p = input;
|
||||
unsigned char *out_p = output;
|
||||
size_t offset;
|
||||
unsigned char ectr[16];
|
||||
unsigned char ectr[16] = {0};
|
||||
|
||||
if( output_size < input_length )
|
||||
return( MBEDTLS_ERR_GCM_BUFFER_TOO_SMALL );
|
||||
|
Reference in New Issue
Block a user