Bug 109421
Summary: | year 2100 bug for X.509 authentication | ||
---|---|---|---|
Product: | Other | Reporter: | Tommaso Schiavinotto (tommaso.schiavinotto) |
Component: | Other | Assignee: | other_other |
Status: | NEW --- | ||
Severity: | normal | CC: | mj1856 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.3.2 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Tommaso Schiavinotto
2015-12-15 16:47:09 UTC
Thanks Tommaso for filing this. The recommended fix would be to replace: if (year % 100 == 0) { year /= 100; if (year % 4 != 0) with this: if (year % 100 == 0) { if (year % 400 != 0) |