diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-28 06:53:42 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-28 06:53:42 +0000 |
commit | 5622ca33a2bbafb3ee10248b752876dc66ec28fb (patch) | |
tree | 7c8557f2349e0d2b353bf60d3a952b5ba79b259b /backport-fix-memory-leak-in-calc_sha256_hash.patch | |
parent | 234812b47987978dfc84e99bfdca4f5f4d6fbfa9 (diff) |
automatic import of httpd
Diffstat (limited to 'backport-fix-memory-leak-in-calc_sha256_hash.patch')
-rw-r--r-- | backport-fix-memory-leak-in-calc_sha256_hash.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/backport-fix-memory-leak-in-calc_sha256_hash.patch b/backport-fix-memory-leak-in-calc_sha256_hash.patch new file mode 100644 index 0000000..e16fc2a --- /dev/null +++ b/backport-fix-memory-leak-in-calc_sha256_hash.patch @@ -0,0 +1,27 @@ +From ff558f52f528dd21eb0a77de74d828e1459cdd62 Mon Sep 17 00:00:00 2001 +From: Joe Orton <notroj@redhat.com> +Date: Fri, 7 Jul 2023 08:04:38 PM GMT+0800 +Subject: [PATCH] fix memory leak in calc_sha256_hash + +Conflict:NA +Reference:https://github.com/apache/httpd/commmit/ff558f52f528dd21eb0a77de74d828e1459cdd62 + +--- + modules/http2/h2_push.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/modules/http2/h2_push.c b/modules/http2/h2_push.c +index 462c470..dd0928b 100644 +--- a/modules/http2/h2_push.c ++++ b/modules/http2/h2_push.c +@@ -502,6 +502,7 @@ static void calc_sha256_hash(h2_push_diary *diary, apr_uint64_t *phash, h2_push + sha256_update(md, push->req->authority); + sha256_update(md, push->req->path); + EVP_DigestFinal(md, hash, &len); ++ EVP_MD_CTX_destroy(md); + + val = 0; + for (i = 0; i != len; ++i) +-- +2.23.0 + |