Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: fixed parsing of http version.

Maxim Dounin
February 11, 2014 01:34PM
details: http://hg.nginx.org/nginx/rev/cff36d2d7fe6
branches:
changeset: 5574:cff36d2d7fe6
user: Xiaochen Wang <wangxiaochen0@gmail.com>
date: Tue Feb 11 20:54:16 2014 +0800
description:
SPDY: fixed parsing of http version.

There is an error while parsing multi-digit minor version numbers (e.g.
"HTTP/1.10").

diffstat:

src/http/ngx_http_spdy.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c
+++ b/src/http/ngx_http_spdy.c
@@ -2794,6 +2794,10 @@ ngx_http_spdy_parse_version(ngx_http_req

ch = *p;

+ if (ch == '.') {
+ break;
+ }
+
if (ch < '0' || ch > '9') {
return NGX_HTTP_PARSE_INVALID_REQUEST;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] SPDY: fixed parsing of http version.

Maxim Dounin 670 February 11, 2014 01:34PM



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

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready