Skip to content

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

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

efegokdemir wants to merge 2 commits 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.

@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
Signed-off-by: Efe Gökdemir <efe@rexcode.co.uk>
@jbonofre
jbonofre force-pushed the codex/issue-1261-dictionary-index-bounds branch from 5697fdd to 99077aa Compare October 3, 2026 12:07
Signed-off-by: Efe Gökdemir <gokdemirefe1903@gmail.com>
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

3 participants