Skip to content

Conversation

@mergify
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