]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2-util: copy serialized result in tpm2_serialize()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Aug 2025 02:27:21 +0000 (11:27 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 10:10:48 +0000 (12:10 +0200)
commit6c8c2a8abfcef0b360b6e7b25a99d81a55d07261
treea064edd4260154bd138bd28d68e1cefc62bb4a0d
parent944dc1af4ddbd89a339be8dcf169abea8a5a05d1
tpm2-util: copy serialized result in tpm2_serialize()

For safety, though typically Esys_Free() is just a simple wrapper of
free(), but let's do unconditionally. See the comment in the code.

While at it, this makes it store the result into struct iovec.

(cherry picked from commit 48d06b99e6a048d5adc90851cceef89621b8b517)
src/pcrlock/pcrlock.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h