Closed Bug 16487 Opened 25 years ago Closed 25 years ago

Potential Y2K problem at mkftp.c:3221

Categories

(SeaMonkey :: General, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: anupp, Assigned: leger)

Details

Please see the following code at ./mozilla/network/protocol/ftp/mkftp.c:3221

time_info->tm_year = (((datestr[6]-'0')*10) + datestr[7]-'0');

time_info is of type struct tm*. tm_year field in struct tm represents number of
years since 1900. So for years in 21st century, its value will be >= 100. Look
at the RHS of the above statement. It will be evaluated to a two digit year. So
tm_year in time_info will always get assigned to two digit year. I wonder how
the 21st century years are handled.

Thanx
Anup
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
no longer used.
Status: RESOLVED → VERIFIED
QA Contact: anupp → shrir
Marking Verified as Invalid.
moving to browser-general component.  the `Y2k' component is being retired...
Component: Y2k → Browser-General
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.