Skip to content

ext/calendar: jewishtojd overflow on year argument. #18849

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

devnexen
Copy link
Member

Upper limit set to the 7th millenium (Messianic Age) in the jewish calendar,
around 2239 year in the gregorian calendar.

Upper limit set to the 7th millenium (Messianic Age) in the jewish calendar,
 around 2239 year in the gregorian calendar.
@devnexen
Copy link
Member Author

devnexen commented Jun 14, 2025

upper limit can be changed (up to INT_MAX - 1), in practice I do not think there is a need to go too far in the future.

@SakiTakamachi
Copy link
Member

Since zend_long is being cast to int, there’s a possibility of overflow during the downcast as well...

@devnexen devnexen closed this in 2ccd2b0 Jun 23, 2025
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.

3 participants