]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2-util: copy serialized result in tpm2_serialize() 38520/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Aug 2025 02:27:21 +0000 (11:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Aug 2025 21:11:34 +0000 (06:11 +0900)
commit48d06b99e6a048d5adc90851cceef89621b8b517
tree0b12413233c1028d663210dff44bc5b2193da162
parent8d40f3f42e04bf45d337e9b03d0750f3f34b92bb
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.
src/pcrlock/pcrlock.c
src/shared/tpm2-util.c
src/shared/tpm2-util.h