Skip to content

Commit

Permalink
SecureBootConfigImpl.c: Add missing allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Filip Go¿a¿ <[email protected]>
  • Loading branch information
philipandag committed Jul 16, 2024
1 parent bfb04e6 commit 798523f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2613,7 +2613,13 @@ UpdateDeletePage (
goto ON_EXIT;
}

CertificateInfoStr = AllocateZeroPool (100);
CertificateInfoStr = AllocateZeroPool (CertificateInfoStrSize);
if (CertificateInfoStr == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto ON_EXIT;
}

CertificateInfoStr8 = AllocateZeroPool (CertificateInfoStrSizeHalf);
if (CertificateInfoStr == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto ON_EXIT;
Expand Down

0 comments on commit 798523f

Please sign in to comment.