]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto/hash: avoid overwriting user supplied result pointer
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Oct 2024 12:25:36 +0000 (13:25 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 22 Oct 2024 10:44:23 +0000 (11:44 +0100)
commitdde538c9a76f328a92c532893e97e18785d57364
tree9672a4c5ebf610bfe20731adaba59df44c2c91ae
parentb5b89e9bc6a20677ff59e5049ba6b89a68105b5e
crypto/hash: avoid overwriting user supplied result pointer

If the user provides a pre-allocated buffer for the hash result,
we must use that rather than re-allocating a new buffer.

Reported-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/hash-gcrypt.c
crypto/hash-glib.c
crypto/hash-gnutls.c
crypto/hash-nettle.c