src/core/ngx_times.c:241: error: Buffer Overrun L3
  Offset: [-6, 6] Size: 7.

src/core/ngx_times.c:238:5: <Offset trace>
236.     ngx_tm_t  tm;
237. 
238.     ngx_gmtime(t, &tm);
         ^
239. 
240.     return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT",

src/core/ngx_times.c:238:5: Call
236.     ngx_tm_t  tm;
237. 
238.     ngx_gmtime(t, &tm);
         ^
239. 
240.     return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT",

src/core/ngx_times.c:278:1: Parameter `t`
  276. 
  277. 
  278. void
       ^
  279. ngx_gmtime(time_t t, ngx_tm_t *tp)
  280. {

src/core/ngx_times.c:286:5: Assignment
  284.     /* the calculation is valid for positive time_t only */
  285. 
  286.     n = (ngx_uint_t) t;
           ^
  287. 
  288.     days = n / 86400;

src/core/ngx_times.c:288:5: Assignment
  286.     n = (ngx_uint_t) t;
  287. 
  288.     days = n / 86400;
           ^
  289. 
  290.     /* January 1, 1970 was Thursday */

src/core/ngx_times.c:292:5: Assignment
  290.     /* January 1, 1970 was Thursday */
  291. 
  292.     wday = (4 + days) % 7;
           ^
  293. 
  294.     n %= 86400;

src/core/ngx_times.c:367:5: Assignment
  365.     tp->ngx_tm_mon = (ngx_tm_mon_t) mon;
  366.     tp->ngx_tm_year = (ngx_tm_year_t) year;
  367.     tp->ngx_tm_wday = (ngx_tm_wday_t) wday;
           ^
  368. }
  369. 

src/core/ngx_times.c:55:1: <Length trace>
53. 
54. 
55. static char  *week[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
    ^
56. static char  *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
57.                            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

src/core/ngx_times.c:55:1: Array declaration
53. 
54. 
55. static char  *week[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
    ^
56. static char  *months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
57.                            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

src/core/ngx_times.c:241:24: Array access: Offset: [-6, 6] Size: 7
239. 
240.     return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT",
241.                        week[tm.ngx_tm_wday],
                            ^
242.                        tm.ngx_tm_mday,
243.                        months[tm.ngx_tm_mon - 1],

u_char *
ngx_http_time(u_char *buf, time_t t)
{
    ngx_tm_t  tm;
    ngx_gmtime(t, &tm);
    return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT",
                       week[tm.ngx_tm_wday],
                       tm.ngx_tm_mday,
                       months[tm.ngx_tm_mon - 1],
                       tm.ngx_tm_year,
                       tm.ngx_tm_hour,
                       tm.ngx_tm_min,
                       tm.ngx_tm_sec);
}
['u_char *\nngx_http_time(u_char *buf, time_t t)\n{\n    ngx_tm_t  tm;\n    ngx_gmtime(t, &tm);\n    return ngx_sprintf(buf, "%s, %02d %s %4d %02d:%02d:%02d GMT",\n                       week[tm.ngx_tm_wday],\n                       tm.ngx_tm_mday,\n                       months[tm.ngx_tm_mon - 1],\n                       tm.ngx_tm_year,\n                       tm.ngx_tm_hour,\n                       tm.ngx_tm_min,\n                       tm.ngx_tm_sec);\n}', 'void\nngx_gmtime(time_t t, ngx_tm_t *tp)\n{\n    ngx_int_t   yday;\n    ngx_uint_t  n, sec, min, hour, mday, mon, year, wday, days, leap;\n    n = (ngx_uint_t) t;\n    days = n / 86400;\n    wday = (4 + days) % 7;\n    n %= 86400;\n    hour = n / 3600;\n    n %= 3600;\n    min = n / 60;\n    sec = n % 60;\n    days = days - (31 + 28) + 719527;\n    year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1);\n    yday = days - (365 * year + year / 4 - year / 100 + year / 400);\n    if (yday < 0) {\n        leap = (year % 4 == 0) && (year % 100 || (year % 400 == 0));\n        yday = 365 + leap + yday;\n        year--;\n    }\n    mon = (yday + 31) * 10 / 306;\n    mday = yday - (367 * mon / 12 - 30) + 1;\n    if (yday >= 306) {\n        year++;\n        mon -= 10;\n    } else {\n        mon += 2;\n    }\n    tp->ngx_tm_sec = (ngx_tm_sec_t) sec;\n    tp->ngx_tm_min = (ngx_tm_min_t) min;\n    tp->ngx_tm_hour = (ngx_tm_hour_t) hour;\n    tp->ngx_tm_mday = (ngx_tm_mday_t) mday;\n    tp->ngx_tm_mon = (ngx_tm_mon_t) mon;\n    tp->ngx_tm_year = (ngx_tm_year_t) year;\n    tp->ngx_tm_wday = (ngx_tm_wday_t) wday;\n}']