Welcome! Log In Create A New Profile

Advanced

[nginx-quic] fix qpack header null value issue

sun edward
May 28, 2021 12:04AM
description:
when header with a null value,need to reset st->value,otherwise it is
taking previous header field's value

# HG changeset patch
# User Zhiyong Sun <sunzhiyong3210@gmail.com>
# Date 1622174245 14400
# Thu May 27 23:57:25 2021 -0400
# Branch quic
# Node ID 93a08c9a9d05a0ba529b369c741baa84defdd832
# Parent e6c26cb4d38b8cecb89f26e002bfacf11eafe4a1
fix qpack null value issue,when header with a null value,need to reset
st->value,otherwise it is taking previous header field's value

diff -r e6c26cb4d38b -r 93a08c9a9d05 src/http/v3/ngx_http_v3_parse.c
--- a/src/http/v3/ngx_http_v3_parse.c Thu May 27 13:29:00 2021 +0300
+++ b/src/http/v3/ngx_http_v3_parse.c Thu May 27 23:57:25 2021 -0400
@@ -1470,6 +1470,8 @@

st->literal.length = st->pint.value;
if (st->literal.length == 0) {
+ st->value.len = 0;
+ st->value.data = NULL;
goto done;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx-quic] fix qpack header null value issue

sun edward 139 May 28, 2021 12:04AM

Re: [nginx-quic] fix qpack header null value issue

Sergey Kandaurov 59 June 01, 2021 07:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready