Skip to content

Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset #16483

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

Closed
wants to merge 3 commits into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 17, 2024

After normalization, N is supposed to be in range [0, 24], but for very large and very small $utcOffset this is not necessarily the case, since the normalization might yied -inf or inf. If that happens, we let the function fail silently, since it is highly unlikely that such $utcOffsets are passed in practice.

After normalization, `N` is supposed to be in range [0, 24], but for
very large and very small `$utcOffset` this is not necessarily the
case, since the normalization might yied `-inf` or `inf`.  If that
happens, we let the function fail silently, since it is highly unlikely
that such `$utcOffset`s are passed in practice.
@cmb69 cmb69 requested a review from derickr as a code owner October 17, 2024 15:10
@cmb69 cmb69 linked an issue Oct 17, 2024 that may be closed by this pull request
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, considering this function is on its way out, no point doing something more rigorous.

Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmb69 cmb69 closed this in 9bc3418 Oct 18, 2024
@cmb69 cmb69 deleted the cmb/gh16454 branch October 18, 2024 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled INF in date_sunset() with tiny $utcOffset
3 participants