comparison src/core/ngx_times.c @ 670:ad45b044f1e5 NGINX_1_1_19

nginx 1.1.19 *) Security: specially crafted mp4 file might allow to overwrite memory locations in a worker process if the ngx_http_mp4_module was used, potentially resulting in arbitrary code execution (CVE-2012-2089). Thanks to Matthew Daley. *) Bugfix: nginx/Windows might be terminated abnormally. Thanks to Vincent Lee. *) Bugfix: nginx hogged CPU if all servers in an upstream were marked as "backup". *) Bugfix: the "allow" and "deny" directives might be inherited incorrectly if they were used with IPv6 addresses. *) Bugfix: the "modern_browser" and "ancient_browser" directives might be inherited incorrectly. *) Bugfix: timeouts might be handled incorrectly on Solaris/SPARC. *) Bugfix: in the ngx_http_mp4_module.
author Igor Sysoev <http://sysoev.ru>
date Thu, 12 Apr 2012 00:00:00 +0400
parents f5b859b2f097
children 660139fd80ca
comparison
equal deleted inserted replaced
669:3f5d0be5ee74 670:ad45b044f1e5
31 volatile ngx_str_t ngx_cached_http_log_iso8601; 31 volatile ngx_str_t ngx_cached_http_log_iso8601;
32 32
33 #if !(NGX_WIN32) 33 #if !(NGX_WIN32)
34 34
35 /* 35 /*
36 * locatime() and localtime_r() are not Async-Signal-Safe functions, therefore, 36 * localtime() and localtime_r() are not Async-Signal-Safe functions, therefore,
37 * they must not be called by a signal handler, so we use the cached 37 * they must not be called by a signal handler, so we use the cached
38 * GMT offset value. Fortunately the value is changed only two times a year. 38 * GMT offset value. Fortunately the value is changed only two times a year.
39 */ 39 */
40 40
41 static ngx_int_t cached_gmtoff; 41 static ngx_int_t cached_gmtoff;
306 days = days - (31 + 28) + 719527; 306 days = days - (31 + 28) + 719527;
307 307
308 /* 308 /*
309 * The "days" should be adjusted to 1 only, however, some March 1st's go 309 * The "days" should be adjusted to 1 only, however, some March 1st's go
310 * to previous year, so we adjust them to 2. This causes also shift of the 310 * to previous year, so we adjust them to 2. This causes also shift of the
311 * last Feburary days to next year, but we catch the case when "yday" 311 * last February days to next year, but we catch the case when "yday"
312 * becomes negative. 312 * becomes negative.
313 */ 313 */
314 314
315 year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1); 315 year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1);
316 316