aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_auth_basic_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2017-09-13 15:53:19 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2017-09-13 15:53:19 +0300
commitb900cc28fcbb4cf5a32ab62f80b59292e1c85b4b (patch)
treed8fa899d15e44c038edb9eaa17fddc3834d93665 /src/http/modules/ngx_http_auth_basic_module.c
parent0206ebe76f748bb39d9de4dd4b3fce777fdfdccf (diff)
downloadnginx-b900cc28fcbb4cf5a32ab62f80b59292e1c85b4b.tar.gz
nginx-b900cc28fcbb4cf5a32ab62f80b59292e1c85b4b.zip
Introduced time truncation to December 31, 9999 (ticket #1368).
Various buffers are allocated in an assumption that there would be no more than 4 year digits. This might not be true on platforms with 64-bit time_t, as 64-bit time_t is able to represent more than that. Such dates with more than 4 year digits hardly make sense though, as various date formats in use do not allow them anyway. As such, all dates are now truncated by ngx_gmtime() to December 31, 9999. This should have no effect on valid dates, though will prevent potential buffer overflows on invalid ones.
Diffstat (limited to 'src/http/modules/ngx_http_auth_basic_module.c')
0 files changed, 0 insertions, 0 deletions