René's URL Explorer Experiment


Title: Fix #15218 (ValueFlow: wrong lifetime values for non-local variables accross functions) by danmar · Pull Request #9014 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: Fix #15218 (ValueFlow: wrong lifetime values for non-local variables accross functions) by danmar · Pull Request #9014 · cppcheck-opensource/cppcheck

X Title: Fix #15218 (ValueFlow: wrong lifetime values for non-local variables accross functions) by danmar · Pull Request #9014 · 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: valueFlowForwardLifetime: do not forward lifetime of non-local variable past end of function For a global variable the scope body end is null so the lifetime was forwarded through the rest of the f...

X Description: valueFlowForwardLifetime: do not forward lifetime of non-local variable past end of function For a global variable the scope body end is null so the lifetime was forwarded through the rest of the f...

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

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:1c48efe9-4fa3-e5b6-a1d5-c2f097d13ac5
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-idA69C:30A1A6:2AC804:3B3955:6AFC4D88
html-safe-nonce935481d531d8b508f8028dfb4f72143156ca787e417bf8fd4e70faf50301a2c0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjlDOjMwQTFBNjoyQUM4MDQ6M0IzOTU1OjZBRkM0RDg4IiwidmlzaXRvcl9pZCI6IjExNTMzMTcwNTU3MDk4NTkyMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb8d17fd9f3f4b142af9551eeb7bbe942cc784751eb39330e45ae7c4ff48fa825
hovercard-subject-tagpull_request:5253419001
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/9014/checks
twitter:imagehttps://opengraph.githubassets.com/68bb86f1daeaf0a7df8fd83c8302c9f72053cc8fbf54d4d8a718ee164a940640/cppcheck-opensource/cppcheck/pull/9014
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/68bb86f1daeaf0a7df8fd83c8302c9f72053cc8fbf54d4d8a718ee164a940640/cppcheck-opensource/cppcheck/pull/9014
og:image:altvalueFlowForwardLifetime: do not forward lifetime of non-local variable past end of function For a global variable the scope body end is null so the lifetime was forwarded through the rest of the f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedanmar
hostnamegithub.com
expected-hostnamegithub.com
Noneb63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6
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
release0243355b0352c83733a042e0dfb3d75149b51261
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/9014/checks#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9014%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%2F9014%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/9014/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9014/checks
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/9014/checks
cppcheck-opensourcehttps://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Codehttps://github.com/cppcheck-opensource/cppcheck
Pull requests221 (221)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
danmarhttps://github.com/danmar
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
cppchecksolutions:fix-15174-commit1https://github.com/cppchecksolutions/cppcheck/tree/fix-15174-commit1
Conversationhttps://github.com/cppcheck-opensource/cppcheck/pull/9014
Commits1 (1)https://github.com/cppcheck-opensource/cppcheck/pull/9014/commits
Checkshttps://github.com/cppcheck-opensource/cppcheck/pull/9014/checks
Files changedhttps://github.com/cppcheck-opensource/cppcheck/pull/9014/files
Fix #15218 (ValueFlow: wrong lifetime values for non-local variables accross functions)https://github.com/cppcheck-opensource/cppcheck/pull/9014/checks#top
danmarhttps://github.com/danmar
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
cppchecksolutions:fix-15174-commit1https://github.com/cppchecksolutions/cppcheck/tree/fix-15174-commit1
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/9014/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F9014%2Fchecks
format on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802901
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802901/job/130307246622?pr=9014
gcc-versions on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802897
build (ghcr.io/cppcheck-opensource/gcc:5.4) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802897/job/130307246351?pr=9014
CIFuzz on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802941
Fuzzing https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802941/job/130307246449?pr=9014
CI-unixish on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954
build_cmake_tinyxml2 (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307246792?pr=9014
build_cmake_tinyxml2 (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247033?pr=9014
build_cmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247092?pr=9014
build_cmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247083?pr=9014
build_cmake_cxxstd (ubuntu-22.04, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247017?pr=9014
build_cmake_cxxstd (ubuntu-22.04, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247243?pr=9014
build_cmake_cxxstd (ubuntu-22.04, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247199?pr=9014
build_cmake_cxxstd (macos-15, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247171?pr=9014
build_cmake_cxxstd (macos-15, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247393?pr=9014
build_uchar (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307246999?pr=9014
build_uchar (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247072?pr=9014
build_mathlib (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247140?pr=9014
build_mathlib (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247051?pr=9014
check_nonneg (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247116?pr=9014
check_nonneg (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307246929?pr=9014
build_cmake_boost (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247119?pr=9014
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247049?pr=9014
build (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247165?pr=9014
build (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130307247227?pr=9014
selfcheck https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802954/job/130328874546?pr=9014
clang-tidy on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802962
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802962/job/130307246341?pr=9014
CI-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802968
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954802968/job/130307246662?pr=9014
cppcheck-premium on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803002
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803002/job/130307246856?pr=9014
selfcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803005
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803005/job/130307246536?pr=9014
CI-cygwin on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803014
build_cygwin (windows-2025, x86_64) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803014/job/130307246774?pr=9014
valgrind on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803030
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803030/job/130307247044?pr=9014
release-windows-mingw on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803072
build_mingw (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803072/job/130307247110?pr=9014
CodeQL on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803073
Analyze (cpp) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803073/job/130307246850?pr=9014
Analyze (python) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803073/job/130307247166?pr=9014
CI-unixish-docker on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084
build_cmake (ubuntu:24.04, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247409?pr=9014
build_cmake (ubuntu:25.10, true, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247443?pr=9014
build_cmake (alpine:3.23, false, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247322?pr=9014
build_make (ubuntu:24.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247414?pr=9014
build_make (ubuntu:25.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247029?pr=9014
build_make (alpine:3.23) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803084/job/130307247491?pr=9014
sanitizers on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803094
build (asan, -DANALYZE_ADDRESS=On, true, process, false) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803094/job/130307247183?pr=9014
build (tsan, -DANALYZE_THREAD=On, false, thread, false, --executor=thread --error-exitcode=0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803094/job/130307247130?pr=9014
build (ubsan, -DANALYZE_UNDEFINED=On, true, process, true) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803094/job/130307247002?pr=9014
scriptcheck on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130307247211?pr=9014
dmake (ubuntu-22.04) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130307247146?pr=9014
dmake (macos-15) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130307247190?pr=9014
dmake (windows-2025) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130307246867?pr=9014
scriptcheck (3.7) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640504?pr=9014
scriptcheck (3.8) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640457?pr=9014
scriptcheck (3.9) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640484?pr=9014
scriptcheck (3.10) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640545?pr=9014
scriptcheck (3.11) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640607?pr=9014
scriptcheck (3.12) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640452?pr=9014
scriptcheck (3.13) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640520?pr=9014
scriptcheck (3.14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803106/job/130314640532?pr=9014
CI-windows on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122
build_qt (windows-2022, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247251?pr=9014
build_qt (windows-2025, 6.10.0) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307246928?pr=9014
build_cmake_cxxstd (windows-2022, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247195?pr=9014
build_cmake_cxxstd (windows-2022, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247503?pr=9014
build_cmake_cxxstd (windows-2022, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247262?pr=9014
build_cmake_cxxstd (windows-2025, 14) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247357?pr=9014
build_cmake_cxxstd (windows-2025, 17) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247341?pr=9014
build_cmake_cxxstd (windows-2025, 20) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247418?pr=9014
build_cmake_minimum https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247403?pr=9014
build (windows-2022, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247145?pr=9014
build (windows-2022, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247436?pr=9014
build (windows-2025, debug) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247260?pr=9014
build (windows-2025, release) https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803122/job/130307247400?pr=9014
Build manual on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803188
convert_via_pandoc https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803188/job/130307247407?pr=9014
manpage https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803188/job/130307247677?pr=9014
Coverage on: pull_request https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803249
build https://github.com/cppcheck-opensource/cppcheck/actions/runs/42954803249/job/130307247469?pr=9014
CodeQL https://github.com/cppcheck-opensource/cppcheck/pull/9014/checks?check_run_id=130311948459
Cppcheck Premium https://github.com/cppcheck-opensource/cppcheck/pull/9014/checks?check_run_id=130309409658
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.