Skip to content

Commit

Permalink
Fix llvm error: variable 'default_iv_length' may be used uninitialized
Browse files Browse the repository at this point in the history
Backport of #7210

Signed-off-by: Sergey <[email protected]>
  • Loading branch information
sergio-nsk authored Mar 6, 2023
1 parent 40d79ce commit 04eb7c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/psa_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -3392,7 +3392,7 @@ psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
{
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
uint8_t local_iv[PSA_CIPHER_IV_MAX_SIZE];
size_t default_iv_length;
size_t default_iv_length = 0;

if (operation->id == 0) {
status = PSA_ERROR_BAD_STATE;
Expand Down

0 comments on commit 04eb7c0

Please sign in to comment.