diff options
| author | Peter Jones <pjones@redhat.com> | 2025-02-25 14:33:50 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-02-26 09:39:46 -0500 |
| commit | 9c423e09cd9a0196888253b16fe7022deadc20fc (patch) | |
| tree | eff3898b3e5a57261b80120d62968f8819f20d5b /Cryptlib/OpenSSL/crypto/stack | |
| parent | 1958b0f3014f7473f72604865ef1cd14c62cc9ef (diff) | |
| download | efi-boot-shim-9c423e09cd9a0196888253b16fe7022deadc20fc.tar.gz efi-boot-shim-9c423e09cd9a0196888253b16fe7022deadc20fc.zip | |
Some save_logs() improvements.
In d972515e608e ("Save the debug and error logs in mok-variables") had a
few deficiencies: 1) the size of the result table isn't correctly
computed when either errlog or dbglog is 0 sized (much more likely for
the former), 2) when we save the error log we leak the allocation for
the previous mok variables, and 3) original mok variables were allocated
with AllocatePages(), but the new ones were allocated with
AllocateZeroPool(). The former guarantees page alignment, which we want
here.
This fixes all three of these.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/stack')
0 files changed, 0 insertions, 0 deletions
