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

[improve] Validate range of argument before long -> int conversion #22830

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Jun 3, 2024

Motivation

Instead of silently dropping bits in the casting, validate upfront and fail if out of range.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@merlimat merlimat added this to the 3.4.0 milestone Jun 3, 2024
@merlimat merlimat requested review from lhotari and codelipenghui June 3, 2024 22:15
@merlimat merlimat self-assigned this Jun 3, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 3, 2024
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