src/core/ngx_times.c:339: error: Integer Overflow L2
  ([0, max(2932896, `t`)] - 59):unsigned64.

src/core/ngx_times.c:320:9: <LHS trace>
318. 
319.     if (days > 2932896) {
320.         days = 2932896;
             ^
321.         sec = 86399;
322.     }

src/core/ngx_times.c:320:9: Assignment
318. 
319.     if (days > 2932896) {
320.         days = 2932896;
             ^
321.         sec = 86399;
322.     }

src/core/ngx_times.c:339:5: Binary operation: ([0, max(2932896, t)] - 59):unsigned64
337. 
338.     /* days since March 1, 1 BC */
339.     days = days - (31 + 28) + 719527;
         ^
340. 
341.     /*

void
ngx_gmtime(time_t t, ngx_tm_t *tp)
{
    ngx_int_t   yday;
    ngx_uint_t  sec, min, hour, mday, mon, year, wday, days, leap;
    if (t < 0) {
        t = 0;
    }
    days = t / 86400;
    sec = t % 86400;
    if (days > 2932896) {
        days = 2932896;
        sec = 86399;
    }
    wday = (4 + days) % 7;
    hour = sec / 3600;
    sec %= 3600;
    min = sec / 60;
    sec %= 60;
    days = days - (31 + 28) + 719527;
    year = (days + 2) * 400 / (365 * 400 + 100 - 4 + 1);
    yday = days - (365 * year + year / 4 - year / 100 + year / 400);
    if (yday < 0) {
        leap = (year % 4 == 0) && (year % 100 || (year % 400 == 0));
        yday = 365 + leap + yday;
        year--;
    }
    mon = (yday + 31) * 10 / 306;
    mday = yday - (367 * mon / 12 - 30) + 1;
    if (yday >= 306) {
        year++;
        mon -= 10;
    } else {
        mon += 2;
    }
    tp->ngx_tm_sec = (ngx_tm_sec_t) sec;
    tp->ngx_tm_min = (ngx_tm_min_t) min;
    tp->ngx_tm_hour = (ngx_tm_hour_t) hour;
    tp->ngx_tm_mday = (ngx_tm_mday_t) mday;
    tp->ngx_tm_mon = (ngx_tm_mon_t) mon;
    tp->ngx_tm_year = (ngx_tm_year_t) year;
    tp->ngx_tm_wday = (ngx_tm_wday_t) wday;
}
['void\nngx_gmtime(time_t t, ngx_tm_t *tp)\n{\n    ngx_int_t   yday;\n    ngx_uint_t  sec, min, hour, mday, mon, year, wday, days, leap;\n    if (t < 0) {\n        t = 0;\n    }\n    days = t / 86400;\n    sec = t % 86400;\n    if (days > 2932896) {\n        days = 2932896;\n        sec = 86399;\n    }\n    wday = (4 + days) % 7;\n    hour = sec / 3600;\n    sec %= 3600;\n    min = sec / 60;\n    sec %= 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}']