Re: [PATCH 1/2] crypto/hash: avoid overwriting user supplied result pointer

2024-10-15 Thread Dorjoy Chowdhury
On Tue, Oct 15, 2024 at 6:56 PM Daniel P. Berrangé wrote: > 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 > Signed-off-by: Daniel P. Berrangé > --- > crypto/hash-gcrypt.c | 15 ++

[PATCH 1/2] crypto/hash: avoid overwriting user supplied result pointer

2024-10-15 Thread Daniel P . Berrangé
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 Signed-off-by: Daniel P. Berrangé --- crypto/hash-gcrypt.c | 15 --- crypto/hash-glib.c | 11 +-- crypto/hash-gnutls.c |