René's URL Explorer Experiment


Title: Fix #15225 (FN arrayIndexOutOfBounds: sizeof(arr) unknown when the array dimension contains sizeof of a struct, variable or dereference) by JayToltTech · Pull Request #9036 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: Fix #15225 (FN arrayIndexOutOfBounds: sizeof(arr) unknown when the array dimension contains sizeof of a struct, variable or dereference) by JayToltTech · Pull Request #9036 · cppcheck-opensource/cppcheck

X Title: Fix #15225 (FN arrayIndexOutOfBounds: sizeof(arr) unknown when the array dimension contains sizeof of a struct, variable or dereference) by JayToltTech · Pull Request #9036 · cppcheck-opensource/cppcheck

Description: static analysis of C/C++ code. Contribute to cppcheck-opensource/cppcheck development by creating an account on GitHub.

Open Graph Description: https://trac.cppcheck.net/ticket/15225 valueFlowSetConstantValue() evaluated sizeof(arr) from Variable::dimensions(), but a dimension such as 10 + sizeof(struct S), 10 + sizeof(var) or 10 + sizeof(...

X Description: https://trac.cppcheck.net/ticket/15225 valueFlowSetConstantValue() evaluated sizeof(arr) from Variable::dimensions(), but a dimension such as 10 + sizeof(struct S), 10 + sizeof(var) or 10 + sizeof(...

Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/9036

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:fff7e217-5ccf-193f-49e2-28b0393ffd05
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id96DA:F55D8:10701E:17A10A:6AFC59DE
html-safe-nonce7e292b53ff11b2a0d3900608e956e7693a3f5a729ea3342336b1e31f36a62856
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkRBOkY1NUQ4OjEwNzAxRToxN0ExMEE6NkFGQzU5REUiLCJ2aXNpdG9yX2lkIjoiMjgyNTY4ODA3ODkxNjIyMzY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9c91e00d898243a1d119f2e972e71cc40bb53ae5d37eda9aa597b96a5a65d70c
hovercard-subject-tagpull_request:5342043908
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
twitter:imagehttps://opengraph.githubassets.com/d4f8f5fe0ef7341323fb42d699e6a786fa1efbe3320f3c124f41b53250fbbb71/cppcheck-opensource/cppcheck/pull/9036
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d4f8f5fe0ef7341323fb42d699e6a786fa1efbe3320f3c124f41b53250fbbb71/cppcheck-opensource/cppcheck/pull/9036
og:image:althttps://trac.cppcheck.net/ticket/15225 valueFlowSetConstantValue() evaluated sizeof(arr) from Variable::dimensions(), but a dimension such as 10 + sizeof(struct S), 10 + sizeof(var) or 10 + sizeof(...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJayToltTech
hostnamegithub.com
expected-hostnamegithub.com
Nonedca5d7b31d726645ba76b526bf3a137e74fee0f5f75412c83dafde3dc9b64ccb
turbo-cache-controlno-cache
go-importgithub.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id143131
octolytics-dimension-repository_nwocppcheck-opensource/cppcheck
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143131
octolytics-dimension-repository_network_root_nwocppcheck-opensource/cppcheck
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebedf3a505b023592c321f5456010d0d5a61a4e05
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9036%2Fchecks
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9036%2Fchecks
Sign uphttps://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%2Fchecks&source=header-repo&source_repo=cppcheck-opensource%2Fcppcheck
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
cppcheck-opensourcehttps://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Codehttps://github.com/cppcheck-opensource/cppcheck
Pull requests222 (222)https://github.com/cppcheck-opensource/cppcheck/pulls
Actionshttps://github.com/cppcheck-opensource/cppcheck/actions
Security and qualityhttps://github.com/cppcheck-opensource/cppcheck/security
Insightshttps://github.com/cppcheck-opensource/cppcheck/pulse
https://github.com/cppcheck-opensource/cppcheck
JayToltTechhttps://github.com/JayToltTech
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
JayToltTech:fix-sizeof-array-dimhttps://github.com/JayToltTech/cppcheck/tree/fix-sizeof-array-dim
Conversationhttps://github.com/cppcheck-opensource/cppcheck/pull/9036
Commits1 (1)https://github.com/cppcheck-opensource/cppcheck/pull/9036/commits
Checkshttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
Files changedhttps://github.com/cppcheck-opensource/cppcheck/pull/9036/files
Fix #15225 (FN arrayIndexOutOfBounds: sizeof(arr) unknown when the array dimension contains sizeof of a struct, variable or dereference)https://github.com/cppcheck-opensource/cppcheck/pull/9036/checks#top
JayToltTechhttps://github.com/JayToltTech
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
JayToltTech:fix-sizeof-array-dimhttps://github.com/JayToltTech/cppcheck/tree/fix-sizeof-array-dim
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/9036/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9036%2Fchecks
CI-cygwin on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861914
build_cygwin (windows-2025, x86_64) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861914/job/133525924866?pr=9036
cppcheck-premium on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861994
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861994/job/133525927139?pr=9036
selfcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861995
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921861995/job/133525935894?pr=9036
clang-tidy on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862003
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862003/job/133525932116?pr=9036
CodeQL on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862013
Analyze (cpp) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862013/job/133525942069?pr=9036
Analyze (python) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862013/job/133525942027?pr=9036
CIFuzz on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862064
Fuzzing https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862064/job/133525957151?pr=9036
gcc-versions on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862135
build (ghcr.io/cppcheck-opensource/gcc:5.4) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862135/job/133525945615?pr=9036
CI-unixish on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214
build_cmake_tinyxml2 (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945628?pr=9036
build_cmake_tinyxml2 (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945710?pr=9036
build_cmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945464?pr=9036
build_cmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945440?pr=9036
build_cmake_cxxstd (ubuntu-22.04, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945450?pr=9036
build_cmake_cxxstd (ubuntu-22.04, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945899?pr=9036
build_cmake_cxxstd (ubuntu-22.04, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945963?pr=9036
build_cmake_cxxstd (macos-15, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945578?pr=9036
build_cmake_cxxstd (macos-15, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945449?pr=9036
build_uchar (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945571?pr=9036
build_uchar (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945080?pr=9036
build_mathlib (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945575?pr=9036
build_mathlib (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945696?pr=9036
check_nonneg (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945676?pr=9036
check_nonneg (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945289?pr=9036
build_cmake_boost (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945829?pr=9036
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945557?pr=9036
build (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945577?pr=9036
build (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133525945970?pr=9036
selfcheck https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862214/job/133556850084?pr=9036
CI-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862240
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862240/job/133525965477?pr=9036
Build manual on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862255
convert_via_pandoc https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862255/job/133525965474?pr=9036
manpage https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862255/job/133525966037?pr=9036
scriptcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133525963639?pr=9036
dmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133525963579?pr=9036
dmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133525963800?pr=9036
dmake (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133525963931?pr=9036
scriptcheck (3.7) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370571?pr=9036
scriptcheck (3.8) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370567?pr=9036
scriptcheck (3.9) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370602?pr=9036
scriptcheck (3.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370593?pr=9036
scriptcheck (3.11) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370668?pr=9036
scriptcheck (3.12) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370625?pr=9036
scriptcheck (3.13) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370656?pr=9036
scriptcheck (3.14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862285/job/133534370560?pr=9036
format on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862324
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862324/job/133525965159?pr=9036
CI-windows on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402
build_qt (windows-2022, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967650?pr=9036
build_qt (windows-2025, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967480?pr=9036
build_cmake_cxxstd (windows-2022, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967541?pr=9036
build_cmake_cxxstd (windows-2022, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967460?pr=9036
build_cmake_cxxstd (windows-2022, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967733?pr=9036
build_cmake_cxxstd (windows-2025, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967674?pr=9036
build_cmake_cxxstd (windows-2025, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967552?pr=9036
build_cmake_cxxstd (windows-2025, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967728?pr=9036
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525966993?pr=9036
build (windows-2022, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967463?pr=9036
build (windows-2022, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967632?pr=9036
build (windows-2025, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967473?pr=9036
build (windows-2025, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862402/job/133525967732?pr=9036
Coverage on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862436
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862436/job/133525971788?pr=9036
sanitizers on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862442
build (asan, -DANALYZE_ADDRESS=On, true, process, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862442/job/133525975986?pr=9036
build (tsan, -DANALYZE_THREAD=On, false, thread, false, --executor=thread --error-exitcode=0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862442/job/133525975378?pr=9036
build (ubsan, -DANALYZE_UNDEFINED=On, true, process, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862442/job/133525976061?pr=9036
valgrind on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862535
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862535/job/133525985485?pr=9036
CI-unixish-docker on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585
build_cmake (ubuntu:24.04, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525983852?pr=9036
build_cmake (ubuntu:25.10, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525984448?pr=9036
build_cmake (alpine:3.23, false, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525984243?pr=9036
build_make (ubuntu:24.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525984289?pr=9036
build_make (ubuntu:25.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525984410?pr=9036
build_make (alpine:3.23) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862585/job/133525984486?pr=9036
release-windows-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862727
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/43921862727/job/133525986769?pr=9036
CodeQL https://github.com/cppcheck-opensource/cppcheck/pull/9036/checks?check_run_id=133532602302
Cppcheck Premium https://github.com/cppcheck-opensource/cppcheck/pull/9036/checks?check_run_id=133528521265
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.