summaryrefslogtreecommitdiff
path: root/Cryptlib
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2025-02-25 14:33:50 -0500
committerPeter Jones <pjones@redhat.com>2025-02-26 09:39:46 -0500
commit9c423e09cd9a0196888253b16fe7022deadc20fc (patch)
treeeff3898b3e5a57261b80120d62968f8819f20d5b /Cryptlib
parent1958b0f3014f7473f72604865ef1cd14c62cc9ef (diff)
downloadefi-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')
0 files changed, 0 insertions, 0 deletions