commit | 7df157c3aa4cef09c8bc74eec2265c3a63091a1c | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Wed May 18 16:21:32 2016 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Wed May 18 16:21:32 2016 +0300 |
tree | e4d34331dc792aeb7bc6084896245b02751ba644 | |
parent | b5fad0210ad3aa8d65454c63ee4ab7d77c53bbc5 [diff] |
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.