]> git.kaiwu.me - nginx.git/commit
Fixed ngx_parse_time() out of bounds access (ticket #821).
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 30 Oct 2015 18:43:30 +0000 (21:43 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 30 Oct 2015 18:43:30 +0000 (21:43 +0300)
commitf9cce38e497577449f1a29017d177ca753491885
treec3c3ef6aae2ead19684511c011be677779c3bc59
parente7d298f3fc79785d22a1227b3c140529a6356fff
Fixed ngx_parse_time() out of bounds access (ticket #821).

The code failed to ensure that "s" is within the buffer passed for
parsing when checking for "ms", and this resulted in unexpected errors when
parsing non-null-terminated strings with trailing "m".  The bug manifested
itself when the expires directive was used with variables.

Found by Roman Arutyunyan.
src/core/ngx_parse.c