Skip to content
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

Fix 3080 (backport #3081) #3083

Merged
merged 2 commits into from
Dec 5, 2024
Merged

Fix 3080 (backport #3081) #3083

merged 2 commits into from
Dec 5, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 5, 2024

Add overflow checking to DateValue toRational method. Sets ok_ to false if the result is invalid.


This is an automatic backport of pull request #3081 done by Mergify.

The "seconds since UNIX epoch" overflows a Rational (int32) in 2038. See
#3080 for background.

(cherry picked from commit 308e219)
This is the correct way to indicate that the value conversion failed.

(cherry picked from commit c7a0b78)
@kmilos kmilos added the bug label Dec 5, 2024
@kmilos kmilos merged commit 2a2b0b6 into main Dec 5, 2024
63 checks passed
@mergify mergify bot deleted the mergify/bp/main/pr-3081 branch December 5, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants