-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logparser divide by zero #4338
Logparser divide by zero #4338
Conversation
I like defaulting the year to the current year, seems very unlikely anyone legitimately has logs in year 0, but I think there may be additional paths that could cause the crash such as in the One issue though is that this still leaves the panic in tsMod, and I think it will be easy to have regressions if this code is modified. Is it possible to fix the bug in that function so that any time.Time can be passed in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to address the cause of the crash in tsmod, this prevents it from being called with a zero year in some cases but doesn't solve the underlying issue.
895c120
to
0a11b4b
Compare
Resolves #3438