Skip to content

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

Merged
lhotari merged 1 commit into
apache:masterfrom
merlimat:int-validate
Jun 4, 2024
Merged

lhotari merged 1 commit into
apache:masterfrom
merlimat:int-validate

Conversation

@merlimat

@merlimat merlimat commented Jun 3, 2024

Copy link
Copy Markdown
Contributor

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 codelipenghui and lhotari 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