Skip to content

Fix some issues in evmctl

Stefan Berger linux-integrity 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Fix memory leaks of tpm_bank_info allocationssrc/evmctl.c+32 -50 replies
2/4Fix memory leak related to entry.templatesrc/evmctl.c+6 -10 replies
3/4Add assert to ensure that algo_name in bank is setsrc/evmctl.c+1 -00 replies
4/4Change condition to free(pub)src/evmctl.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH ima-evm-utils v1 0/4] Fix some issues in evmctl

This series of patches fixes memory leaks related to tpm_bank_info allocations and entry.template as well as gcc compiler warnings when building with -fanalyzer (gcc 12.2.1).

This series is intended to be applied on top of Mimi's current series at https://github.com/mimizohar/ima-evm-utils/tree/next-testing .

Stefan

Stefan Berger (4):
Fix memory leaks of tpm_bank_info allocations Fix memory leak related to entry.template Add assert to ensure that algo_name in bank is set Change condition to free(pub)

 src/evmctl.c | 47 ++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 7 deletions(-)

base-commit: f6abaed5d0d0a4478cf25a8096a4ff44be4a234e

Signature · 1 line
2.38.1