commit | 5b8577db0604e3b9e2ce61e86e6a1a2590cac537 | [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 | b492298c93dc24892e8d33e63c548ef837466f5e [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>