aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-05-18 16:21:32 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-05-18 16:21:32 +0300
commite647c47f2a373f44e5f807ffd65bb75dce164a0b (patch)
treee4d34331dc792aeb7bc6084896245b02751ba644 /src/http/ngx_http_request.c
parentce9ff81b3295eac5389a39dc861679f71d78690c (diff)
downloadnginx-e647c47f2a373f44e5f807ffd65bb75dce164a0b.tar.gz
nginx-e647c47f2a373f44e5f807ffd65bb75dce164a0b.zip
Added overflow checks for version numbers (ticket #762).
Both minor and major versions are now limited to 999 maximum. In case of r->http_minor, this limit is already implied by the code. Major version, r->http_major, in theory can be up to 65535 with current code, but such values are very unlikely to become real (and, additionally, such values are not allowed by RFC 7230), so the same test was used for r->http_major.
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions