]> git.kaiwu.me - nginx.git/commit
Added overflow checks for version numbers (ticket #762).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 18 May 2016 13:21:32 +0000 (16:21 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 18 May 2016 13:21:32 +0000 (16:21 +0300)
commite647c47f2a373f44e5f807ffd65bb75dce164a0b
treee4d34331dc792aeb7bc6084896245b02751ba644
parentce9ff81b3295eac5389a39dc861679f71d78690c
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.
src/http/ngx_http_parse.c