Skip to content

GH-1261: Reject out-of-range dictionary indices - #1309

Open
efegokdemir wants to merge 1 commit into
apache:mainfrom
efegokdemir:codex/issue-1261-dictionary-index-bounds
Open

efegokdemir wants to merge 1 commit into
apache:mainfrom
efegokdemir:codex/issue-1261-dictionary-index-bounds

Conversation

@efegokdemir

Copy link
Copy Markdown

What's Changed

Reject negative and dictionaryCount indices before copying dictionary values.

Add regression coverage for both invalid bounds and allocator cleanup, and keep the existing struct decode regression focused on the later invalid field.

Closes #1261.

AI assistance was used during development; the complete diff and test results were reviewed by the author.

Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
@github-actions

This comment has been minimized.

@lidavidm lidavidm added the bug-fix PRs that fix a big. label Sep 23, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DictionaryEncoder.decode accepts out-of-range dictionary indices

2 participants