commit | 6c717d952d455d2efc267496fa9797a656459e6f | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Nov 02 11:27:37 2024 +0100 |
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | Sat Nov 16 19:21:59 2024 +0200 |
tree | 6f5eccf11580102599e5107a715a3bf9717359f7 | |
parent | f39199e8096dab68fe4a8e15f8ff60026a5fe491 [diff] |
tpm: use memmove() for overlapping buffers The behavior of memcpy() for overlapping buffers is undefined. Fixes: 4c57ec76b725 ("tpm: Implement state command for Cr50") Addresses-Coverity-ID: 356664 Overlapping buffer in memory copy Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>