From 2a1951519e78c1aa404ec0201b9eaeae469d757b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Feb 2022 11:58:58 +0100 Subject: [PATCH] http2: fix the array copy to nghttp2_nv Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44517 Follow-up to 9f985a11e794 Closes #8414 --- lib/http2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http2.c b/lib/http2.c index be7c24b465..26ab2aa81d 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1922,6 +1922,7 @@ static ssize_t http2_send(struct Curl_easy *data, int sockindex, nva[i].namelen = hreq->header[i].namelen; nva[i].value = (unsigned char *)hreq->header[i].value; nva[i].valuelen = hreq->header[i].valuelen; + nva[i].flags = NGHTTP2_NV_FLAG_NONE; } Curl_pseudo_free(hreq); } -- 2.47.3