]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: jws: fix memory leak in jws_b64_signature
authorMia Kanashi <chad@redpilled.dev>
Thu, 5 Mar 2026 16:08:32 +0000 (18:08 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 12 Mar 2026 08:18:42 +0000 (09:18 +0100)
commitb6e28bb4d78edc45464628203378dc4dc47fb849
treeb90aee8e6d203687a4f14b439b7579dd0df79a4f
parent760fef1fc00d1eaa18fd1f43e38d72dc2133bea7
BUG/MINOR: jws: fix memory leak in jws_b64_signature

EVP_MD_CTX is allocated using EVP_MD_CTX_new() but was never freed.
ctx should be initialized to NULL otherwise EVP_MD_CTX_free(ctx) could
segfault.

Must be backported as far as 3.2.
src/jws.c