| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3312cdec-e6e5-faba-a73b-6597ff1143b4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B7F8:1A0CEA:A531BB:E01AD5:6A4C8CAE |
| html-safe-nonce | 99484b071642792a9e86777c9c8ca199721962b9add61e498408bc481e87f383 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0Y4OjFBMENFQTpBNTMxQkI6RTAxQUQ1OjZBNEM4Q0FFIiwidmlzaXRvcl9pZCI6IjM2Mzk2OTM4MTM5OTM5OTk1MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 22266602937e3b8059371573eee72aa81a8c67d34978d611926c40948d484381 |
| hovercard-subject-tag | pull_request:3989548892 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| twitter:image | https://avatars.githubusercontent.com/u/1306044?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1306044?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 143131 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/cppcheck |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143131 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/cppcheck |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F8695%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F8695%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cppcheck-opensource%2Fcppcheck |
| Reload | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Reload | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Reload | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
|
cppcheck-opensource
| https://github.com/cppcheck-opensource |
| cppcheck | https://github.com/cppcheck-opensource/cppcheck |
|
Notifications
| https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck |
|
Fork
1.6k
| https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck |
|
Star
6.7k
| https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck |
|
Code
| https://github.com/cppcheck-opensource/cppcheck |
|
Pull requests
205
| https://github.com/cppcheck-opensource/cppcheck/pulls |
|
Actions
| https://github.com/cppcheck-opensource/cppcheck/actions |
|
Security and quality
0
| https://github.com/cppcheck-opensource/cppcheck/security |
|
Insights
| https://github.com/cppcheck-opensource/cppcheck/pulse |
|
Code
| https://github.com/cppcheck-opensource/cppcheck |
|
Pull requests
| https://github.com/cppcheck-opensource/cppcheck/pulls |
|
Actions
| https://github.com/cppcheck-opensource/cppcheck/actions |
|
Security and quality
| https://github.com/cppcheck-opensource/cppcheck/security |
|
Insights
| https://github.com/cppcheck-opensource/cppcheck/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcppcheck-opensource%2Fcppcheck%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcppcheck-opensource%2Fcppcheck%2Fissues%2Fnew%2Fchoose |
| pfultz2 | https://github.com/pfultz2 |
| cppcheck-opensource:main | https://github.com/cppcheck-opensource/cppcheck/tree/main |
| pfultz2:check-algo-out-of-bounds | https://github.com/pfultz2/cppcheck/tree/check-algo-out-of-bounds |
|
Conversation
0
| https://github.com/cppcheck-opensource/cppcheck/pull/8695 |
|
Commits
12
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits |
|
Checks
70
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/checks |
|
Files changed
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
|
Fix issue 13254: FN: containerOutOfBounds (std::equal)
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#top |
|
Show all changes
12 commits
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
|
2ff811f
Add check for algo out of bounds
Jul 3, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/2ff811f8b2373eb10702b8664fcb7c50856b0094 |
|
0568587
Simplify
Jul 3, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/0568587c6eab73306196f009fd0cb16dba84acea |
|
e3c596a
Reuse function
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/e3c596aaadf17c408bf3d3e7f62915d3c018b9a5 |
|
47b4555
Handle mulple size on dst
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/47b4555ba95b3ec33097f9443d58f04ddf62f052 |
|
702a29c
Add another test
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/702a29ce545f29f4e17cbadba84bc9f02e62c2ca |
|
f1ba660
Some cleanup
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/f1ba660d12e93dda3bde2db9a323d588bc4336cb |
|
ac3b121
Handle possible values on source
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/ac3b121cd65b7ca3ba9e88d6c9726e9827e65ec8 |
|
8a39dbe
Cleanup
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/8a39dbe9669be1aa83e6a16f08eb44475c7d63b7 |
|
59c63a5
Format
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/59c63a581b151dcf1c212b34c7d3f2d6df53b3b4 |
|
c2d3e56
Update active checkers
Jul 4, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/c2d3e56764f7de2649b7c7ad009f97572636f5f0 |
|
0bd4cac
Merge branch 'main' into check-algo-out-of-bounds
Jul 5, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/0bd4cac97ef01cd79646f74c37115752a862fe30 |
|
0dadc9f
Add unit test for valueflow changes
Jul 5, 2026
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/commits/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1 |
|
Clear filters
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
|
checkers.cpp
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-3c247a21f48d6a47aeb8847d88b447f64f492865eacaa375f23cccf2af042479 |
|
checkstl.cpp
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-8ca3ad3eb441d047868162910b05dc86b19a037095af712d5ce93cf7ec96ff75 |
|
checkstl.h
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
valueflow.cpp
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-16a9ec3ff1314646e106eb413234f5614e3a7f527fb82d0a369755bee65a7e31 |
|
other_test.py
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-a6147f590942e7d785a36fcd8e5dc9a2a45198ead99624e43cfc6da6eca4f40d |
|
teststl.cpp
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-c3ce67726f78909fc33b283ac95a4a3792fda6fc74a789fb3be4ceb6656ee73b |
|
testvalueflow.cpp
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-0c918c64e1eee55c83249b2cbe2beb837af6dd0a5a4273a1ae9168cd0582ba8d |
| lib/checkers.cpp | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-3c247a21f48d6a47aeb8847d88b447f64f492865eacaa375f23cccf2af042479 |
|
View file
| https://github.com/cppcheck-opensource/cppcheck/blob/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1/lib/checkers.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/{{ revealButtonHref }} |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-3c247a21f48d6a47aeb8847d88b447f64f492865eacaa375f23cccf2af042479 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-3c247a21f48d6a47aeb8847d88b447f64f492865eacaa375f23cccf2af042479 |
| lib/checkstl.cpp | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-8ca3ad3eb441d047868162910b05dc86b19a037095af712d5ce93cf7ec96ff75 |
|
View file
| https://github.com/cppcheck-opensource/cppcheck/blob/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1/lib/checkstl.cpp |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| lib/checkstl.h | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
View file
| https://github.com/cppcheck-opensource/cppcheck/blob/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1/lib/checkstl.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/{{ revealButtonHref }} |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-cac50a1033379b0355b0e8ed9a9bd2c7767e557f4c791239d1caf426c9676b72 |
| lib/valueflow.cpp | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-16a9ec3ff1314646e106eb413234f5614e3a7f527fb82d0a369755bee65a7e31 |
|
View file
| https://github.com/cppcheck-opensource/cppcheck/blob/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1/lib/valueflow.cpp |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/{{ revealButtonHref }} |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-16a9ec3ff1314646e106eb413234f5614e3a7f527fb82d0a369755bee65a7e31 |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-16a9ec3ff1314646e106eb413234f5614e3a7f527fb82d0a369755bee65a7e31 |
| test/cli/other_test.py | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-a6147f590942e7d785a36fcd8e5dc9a2a45198ead99624e43cfc6da6eca4f40d |
|
View file
| https://github.com/cppcheck-opensource/cppcheck/blob/0dadc9f1ecff248fbaa7ff7f6b3c11524a0615e1/test/cli/other_test.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/{{ revealButtonHref }} |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-a6147f590942e7d785a36fcd8e5dc9a2a45198ead99624e43cfc6da6eca4f40d |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-a6147f590942e7d785a36fcd8e5dc9a2a45198ead99624e43cfc6da6eca4f40d |
|
| https://github.com/cppcheck-opensource/cppcheck/pull/8695/files#diff-a6147f590942e7d785a36fcd8e5dc9a2a45198ead99624e43cfc6da6eca4f40d |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
| Please reload this page | https://github.com/cppcheck-opensource/cppcheck/pull/8695/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |