Skip to content

Fix out-of-bounds access in Command option parsing#135

Open
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/command-argv-bounds
Open

Fix out-of-bounds access in Command option parsing#135
CodeReclaimers wants to merge 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/command-argv-bounds

Conversation

@CodeReclaimers
Copy link
Contributor

GetInteger, GetFloat, GetDouble, and GetString access `mArguments[i+1]` without bounds checking. When a flag like `--option` is the last argument, this reads past the end of the vector. Added bounds check before the access.

🤖 Generated with Claude Code

GetInteger, GetFloat, GetDouble, and GetString all access
mArguments[i+1] without checking bounds. When a flag like --option
is the last argument, this reads past the end of the vector.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant