]> git.ipfire.org Git - thirdparty/openssl.git/commit
s390x: Fix memory leak in s390x_HMAC_CTX_copy()
authorIngo Franzki <ifranzki@linux.ibm.com>
Tue, 20 Aug 2024 09:35:20 +0000 (11:35 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 23 Aug 2024 07:11:01 +0000 (09:11 +0200)
commit19b87d2d2b022c20dd9043c3b6d021315011b45f
tree70b0f0ecaea64793d4ea7d22521d8b12e88dad42
parentfe1ce91f7feb4a6be7ba1616dad442d5d7796b96
s390x: Fix memory leak in s390x_HMAC_CTX_copy()

When s390x_HMAC_CTX_copy() is called, but the destination context already
has a buffer allocated, it is not freed before duplicating the buffer from
the source context.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/25238)
crypto/hmac/hmac_s390x.c