Skip to content

MINOR: Check buffer bounds before writing long decimal values - #1444

Merged
jbonofre merged 1 commit into
apache:mainfrom
robert3005:rk/fix-decimal-write-bounds
Nov 11, 2026
Merged

jbonofre merged 1 commit into
apache:mainfrom
robert3005:rk/fix-decimal-write-bounds

Conversation

@robert3005

Copy link
Copy Markdown
Contributor

What's Changed

Split out from gh-1228

Avoids out of bounds writes when writing long to decimal buffer, validate the bounds before writing to the address.

@jbonofre jbonofre added the Type: enhancement New feature or request label Nov 11, 2026
@apache apache deleted a comment from github-actions Bot Nov 11, 2026
@jbonofre jbonofre added enhancement PRs that add or improve features. and removed Type: enhancement New feature or request labels Nov 11, 2026
@apache apache deleted a comment from github-actions Bot Nov 11, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Nov 11, 2026

@jbonofre jbonofre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @robert3005!

Good catch on adding the bounds check before writing to the raw memory address.

@jbonofre
jbonofre merged commit 8d9407c into apache:main Nov 11, 2026
23 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that add or improve features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants