From: Daniel Stenberg Date: Wed, 9 Feb 2022 10:58:58 +0000 (+0100) Subject: http2: fix the array copy to nghttp2_nv X-Git-Tag: curl-7_82_0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1951519e78c1aa404ec0201b9eaeae469d757b;p=thirdparty%2Fcurl.git 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 --- 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); }