Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel/vtpm: fix potential UB when accessing guest buffer
Creating a mutable reference to the guest buffer, could have been an UB because the guest could potentially modify it. So, let's copy the guest buffer to an internal one and then copy it back to give the result to the guest. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
- Loading branch information