Skip to content

Commit

Permalink
Merge pull request #7211 from sergio-nsk/patch-3
Browse files Browse the repository at this point in the history
mbedtls-2.28: Fix llvm error: variable 'default_iv_length' may be used uninitialized
  • Loading branch information
gilles-peskine-arm authored Sep 13, 2023
2 parents 3d9978e + 04eb7c0 commit 5161645
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 @@ -3393,7 +3393,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 5161645

Please sign in to comment.