Potential Y2K problem at mkftp.c:3221

VERIFIED INVALID

Status

SeaMonkey
General
P3
normal
VERIFIED INVALID
19 years ago
13 years ago

People

(Reporter: Anup Parkhi, Assigned: leger)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID

Comment 1

19 years ago
no longer used.
(Assignee)

Updated

19 years ago
Status: RESOLVED → VERIFIED
QA Contact: anupp → shrir
(Assignee)

Comment 2

19 years ago
Marking Verified as Invalid.

Comment 3

18 years ago
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.