René's URL Explorer Experiment


Title: Rust: Assume callbacks will be invoked in library functions by hvitved · Pull Request #22287 · github/codeql · GitHub

Open Graph Title: Rust: Assume callbacks will be invoked in library functions by hvitved · Pull Request #22287 · github/codeql

X Title: Rust: Assume callbacks will be invoked in library functions by hvitved · Pull Request #22287 · github/codeql

Description: Flow through captured variables relies on being able to see calls to the capturing closures. For calls that happen inside library functions we hence need a flow model, which this PR adds, similar to other languages (e.g. Java).

Open Graph Description: Flow through captured variables relies on being able to see calls to the capturing closures. For calls that happen inside library functions we hence need a flow model, which this PR adds, similar t...

X Description: Flow through captured variables relies on being able to see calls to the capturing closures. For calls that happen inside library functions we hence need a flow model, which this PR adds, similar t...

Opengraph URL: https://github.com/github/codeql/pull/22287

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78c503ea-219c-9acb-2290-b88d7ab60e39
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDC7C:204EA1:168BB2B:1DA73F6:6AF89935
html-safe-noncee7403f6683b20a0b74beb4894e0a1c0435961c9932f8ab9b30cc0787addf0de5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzdDOjIwNEVBMToxNjhCQjJCOjFEQTczRjY6NkFGODk5MzUiLCJ2aXNpdG9yX2lkIjoiMjYwMDE1MDc4MzA2Mzc5MTkyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac19d8de0bedf0555afe19d88fe0fa6bb984488968a54c0c6d1ca632786f54c156
hovercard-subject-tagpull_request:4219061566
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/codeql/pull/22287/files
twitter:imagehttps://avatars.githubusercontent.com/u/3667920?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3667920?s=400&v=4
og:image:altFlow through captured variables relies on being able to see calls to the capturing closures. For calls that happen inside library functions we hence need a flow model, which this PR adds, similar t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/codeql git https://github.com/github/codeql.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id143040428
octolytics-dimension-repository_nwogithub/codeql
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143040428
octolytics-dimension-repository_network_root_nwogithub/codeql
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql/pull/22287/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql%2Fpull%2F22287%2Ffiles
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%2Fgithub%2Fcodeql%2Fpull%2F22287%2Ffiles
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%2Ffiles&source=header-repo&source_repo=github%2Fcodeql
Reloadhttps://github.com/github/codeql/pull/22287/files
Reloadhttps://github.com/github/codeql/pull/22287/files
Reloadhttps://github.com/github/codeql/pull/22287/files
githubhttps://github.com/github
codeqlhttps://github.com/github/codeql
Codehttps://github.com/github/codeql
Issues1k (1k)https://github.com/github/codeql/issues
Pull requests516 (516)https://github.com/github/codeql/pulls
Discussionshttps://github.com/github/codeql/discussions
Actionshttps://github.com/github/codeql/actions
Projectshttps://github.com/github/codeql/projects
Security and qualityhttps://github.com/github/codeql/security
Insightshttps://github.com/github/codeql/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fcodeql%2Fissues%2Fnew%2Fchoose
hvitvedhttps://github.com/hvitved
github:mainhttps://github.com/github/codeql/tree/main
hvitved:rust/default-callback-modelshttps://github.com/hvitved/codeql/tree/rust/default-callback-models
Conversation 5 https://github.com/github/codeql/pull/22287
Commits 4 https://github.com/github/codeql/pull/22287/commits
Checks 15 https://github.com/github/codeql/pull/22287/checks
Findings https://github.com/github/codeql/pull/22287/findings
Files changed https://github.com/github/codeql/pull/22287/files
Please reload this pagehttps://github.com/github/codeql/pull/22287/files
Rust: Assume callbacks will be invoked in library functions https://github.com/github/codeql/pull/22287/files#top
Show all changes 4 commits https://github.com/github/codeql/pull/22287/files
51f3acf Rust: Add test for missing flow through captured variables hvitved Aug 6, 2026 https://github.com/github/codeql/pull/22287/commits/51f3acf10440280792366439d81f9d0e44076f89
e9bd698 Rust: Assume callbacks will be invoked in library functions hvitved Aug 6, 2026 https://github.com/github/codeql/pull/22287/commits/e9bd6988c82d0d085f82beb96f5d31aea720b4a4
1e6ef80 Rust: Add another captured varible flow test hvitved Aug 6, 2026 https://github.com/github/codeql/pull/22287/commits/1e6ef80a7e2de97b4b45f36ce2365330af65d644
52cbb67 Rust: Evaluate `mayInvokeCallback` in type inference stage hvitved Aug 10, 2026 https://github.com/github/codeql/pull/22287/commits/52cbb679dd79fd14d8126576ff5706c5398e3679
Clear filters https://github.com/github/codeql/pull/22287/files
Please reload this pagehttps://github.com/github/codeql/pull/22287/files
Please reload this pagehttps://github.com/github/codeql/pull/22287/files
Scope.qll https://github.com/github/codeql/pull/22287/files#diff-fdd7f0c5e4f8a8297bc55c6cf3e10664f328e23b445bb9ea1c29ba7fa56cbce3
DataFlowImpl.qll https://github.com/github/codeql/pull/22287/files#diff-895728d1efcea2f6c062c690b085321596447c884837815727bb1497d705757c
ModelsAsData.qll https://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
CachedStages.qll https://github.com/github/codeql/pull/22287/files#diff-113c30eec7c49aeed45147f5f357e304044411cd4a859c17fc161e26c0273700
external_file.rs https://github.com/github/codeql/pull/22287/files#diff-541aa762115293b09f73133ab215676c4730e44eb437cdbc209e10f448dd243d
inline-flow.expected https://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
inline-flow.ext.yml https://github.com/github/codeql/pull/22287/files#diff-7abc3598782452c91ef66c8b9dd608156bc1f036454ff318e801e233c5449c7e
main.rs https://github.com/github/codeql/pull/22287/files#diff-dfd10c0077310a081e0186d49f036eb3860d7ac6ace217e60256084d6c872f5a
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/lib/codeql/rust/controlflow/internal/Scope.qllhttps://github.com/github/codeql/pull/22287/files#diff-fdd7f0c5e4f8a8297bc55c6cf3e10664f328e23b445bb9ea1c29ba7fa56cbce3
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/lib/codeql/rust/controlflow/internal/Scope.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-fdd7f0c5e4f8a8297bc55c6cf3e10664f328e23b445bb9ea1c29ba7fa56cbce3
https://github.com/github/codeql/pull/22287/files#diff-fdd7f0c5e4f8a8297bc55c6cf3e10664f328e23b445bb9ea1c29ba7fa56cbce3
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qllhttps://github.com/github/codeql/pull/22287/files#diff-895728d1efcea2f6c062c690b085321596447c884837815727bb1497d705757c
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-895728d1efcea2f6c062c690b085321596447c884837815727bb1497d705757c
https://github.com/github/codeql/pull/22287/files#diff-895728d1efcea2f6c062c690b085321596447c884837815727bb1497d705757c
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qllhttps://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/lib/codeql/rust/dataflow/internal/ModelsAsData.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
https://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
https://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
Please reload this pagehttps://github.com/github/codeql/pull/22287/files
https://github.com/github/codeql/pull/22287/files#diff-8004f6ea26881cdadc22870fb96b2225a75a7a38b640a294018526217e605d86
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/lib/codeql/rust/internal/CachedStages.qllhttps://github.com/github/codeql/pull/22287/files#diff-113c30eec7c49aeed45147f5f357e304044411cd4a859c17fc161e26c0273700
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/lib/codeql/rust/internal/CachedStages.qll
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-113c30eec7c49aeed45147f5f357e304044411cd4a859c17fc161e26c0273700
https://github.com/github/codeql/pull/22287/files#diff-113c30eec7c49aeed45147f5f357e304044411cd4a859c17fc161e26c0273700
https://github.com/github/codeql/pull/22287/files#diff-113c30eec7c49aeed45147f5f357e304044411cd4a859c17fc161e26c0273700
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/test/library-tests/dataflow/lambdas/external_file.rshttps://github.com/github/codeql/pull/22287/files#diff-541aa762115293b09f73133ab215676c4730e44eb437cdbc209e10f448dd243d
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/test/library-tests/dataflow/lambdas/external_file.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/test/library-tests/dataflow/lambdas/inline-flow.expectedhttps://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/test/library-tests/dataflow/lambdas/inline-flow.expected
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
https://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
https://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
https://github.com/github/codeql/pull/22287/files#diff-377d6653a9a05fda216a81d81edbd74724068bb533e065688070e0d730b5af80
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/test/library-tests/dataflow/lambdas/inline-flow.ext.ymlhttps://github.com/github/codeql/pull/22287/files#diff-7abc3598782452c91ef66c8b9dd608156bc1f036454ff318e801e233c5449c7e
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/test/library-tests/dataflow/lambdas/inline-flow.ext.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/blob/main/CODEOWNERS#L23
rust/ql/test/library-tests/dataflow/lambdas/main.rshttps://github.com/github/codeql/pull/22287/files#diff-dfd10c0077310a081e0186d49f036eb3860d7ac6ace217e60256084d6c872f5a
View file https://github.com/hvitved/codeql/blob/52cbb679dd79fd14d8126576ff5706c5398e3679/rust/ql/test/library-tests/dataflow/lambdas/main.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/codeql/pull/22287/{{ revealButtonHref }}
https://github.com/github/codeql/pull/22287/files#diff-dfd10c0077310a081e0186d49f036eb3860d7ac6ace217e60256084d6c872f5a
https://github.com/github/codeql/pull/22287/files#diff-dfd10c0077310a081e0186d49f036eb3860d7ac6ace217e60256084d6c872f5a
Please reload this pagehttps://github.com/github/codeql/pull/22287/files
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.