--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- mozilla/nsprpub/pr/src/misc/prtime.c +++ mozilla/nsprpub/pr/src/misc/prtime.c.fixed @@ -1529,11 +1529,12 @@ struct tm localTime; time_t secs; - PR_ASSERT(tm.tm_month > -1 + if (!(tm.tm_month > -1 && tm.tm_mday > 0 && tm.tm_hour > -1 && tm.tm_min > -1 - && tm.tm_sec > -1); + && tm.tm_sec > -1)) + return PR_FAILURE; /* * To obtain time_t from a tm structure representing the local