Skip to content

Fix issue 13254: FN: containerOutOfBounds (std::equal)#8695

Open
pfultz2 wants to merge 9 commits into
cppcheck-opensource:mainfrom
pfultz2:check-algo-out-of-bounds
Open

Fix issue 13254: FN: containerOutOfBounds (std::equal)#8695
pfultz2 wants to merge 9 commits into
cppcheck-opensource:mainfrom
pfultz2:check-algo-out-of-bounds

Conversation

@pfultz2

@pfultz2 pfultz2 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

This adds a new check algorithmOutOfBounds that checks when one of the algorithms will access elements out of bounds based on the sizes of other containers passed in. Right now, it directly checks for the stl algorithms, but we could add attributes to the Library to better describe these algorithms so it can be used for other algorithm libraries.

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