Skip to content

Add integer overflow guards to rosidl sequence init and copy functions#973

Open
mjcarroll wants to merge 1 commit into
humblefrom
guard_sequence_overflow_humble
Open

Add integer overflow guards to rosidl sequence init and copy functions#973
mjcarroll wants to merge 1 commit into
humblefrom
guard_sequence_overflow_humble

Conversation

@mjcarroll

Copy link
Copy Markdown
Member

Check that target size multiplied by item size does not overflow SIZE_MAX. This prevents undersized heap allocations when sequence length inputs are malicious or overflow.

Check that target size multiplied by item size does not overflow SIZE_MAX.
This prevents undersized heap allocations when sequence length inputs are malicious or overflow.

Signed-off-by: Michael Carroll <mjcarroll.oss@gmail.com>
@mjcarroll mjcarroll self-assigned this Jun 5, 2026
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