René's URL Explorer Experiment


Title: `CON51-CPP`: Falsely reports potential leaks of std::lock_guard · Issue #972 · github/codeql-coding-standards · GitHub

Open Graph Title: `CON51-CPP`: Falsely reports potential leaks of std::lock_guard · Issue #972 · github/codeql-coding-standards

X Title: `CON51-CPP`: Falsely reports potential leaks of std::lock_guard · Issue #972 · github/codeql-coding-standards

Description: Affected rules 'CON51-CPP' Description The description of CON51-CPP recommends that users use std::lock_guard to avoid leaking locked mutexes when an exception occurs. However, it seems that this rule was likely implemented before we sup...

Open Graph Description: Affected rules 'CON51-CPP' Description The description of CON51-CPP recommends that users use std::lock_guard to avoid leaking locked mutexes when an exception occurs. However, it seems that this r...

X Description: Affected rules 'CON51-CPP' Description The description of CON51-CPP recommends that users use std::lock_guard to avoid leaking locked mutexes when an exception occurs. However, it seems tha...

Opengraph URL: https://github.com/github/codeql-coding-standards/issues/972

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`CON51-CPP`:  Falsely reports potential leaks of std::lock_guard","articleBody":"### Affected rules\n - 'CON51-CPP'\n\n### Description\n\nThe description of CON51-CPP recommends that users use `std::lock_guard` to avoid leaking locked mutexes when an exception occurs. However, it seems that this rule was likely implemented before we supported `std::lock_guard` in our `LockProtectedControlFlowNode` class, and it assumes all locks require a catch block. Most likely, we later added support for std::lock_guard and didn't update this rule to allow `LockProtectedControlFlowNode`s without catch blocks when the lock cannot leak.\n\n### Example\n\n```cpp\nvoid example_function(std::mutex\u0026 m) {\n  std::lock_guard\u003cstd::mutex\u003e lg(m);\n\n  // alert is falsely reported that this function requires a catch block to unlock lg.\n  return;\n}\n```\n","author":{"url":"https://github.com/MichaelRFairhurst","@type":"Person","name":"MichaelRFairhurst"},"datePublished":"2025-11-19T23:55:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/972/codeql-coding-standards/issues/972"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:06108fd6-edad-27fc-44c2-3f09779e6706
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC3B0:7FC80:18F7FC0:21A991B:6964B040
html-safe-nonce3e32562f60f422010846fa1e2baa4b4d2b6c770a638f21ede816d8e64912427a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0IwOjdGQzgwOjE4RjdGQzA6MjFBOTkxQjo2OTY0QjA0MCIsInZpc2l0b3JfaWQiOiIyNjM0NTU4MDU4MTAzMzUzNDA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6bd226dda7342e8871e913e67b570248ed9276d1f7ae43e39650bc21fbd9b6e0
hovercard-subject-tagissue:3644826340
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-coding-standards/972/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0ac4d34e8ea8c1afde5a5d7924c4cdb483dba1b971767cc18279b6fe0eb03c7a/github/codeql-coding-standards/issues/972
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ac4d34e8ea8c1afde5a5d7924c4cdb483dba1b971767cc18279b6fe0eb03c7a/github/codeql-coding-standards/issues/972
og:image:altAffected rules 'CON51-CPP' Description The description of CON51-CPP recommends that users use std::lock_guard to avoid leaking locked mutexes when an exception occurs. However, it seems that this r...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMichaelRFairhurst
hostnamegithub.com
expected-hostnamegithub.com
None15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057
turbo-cache-controlno-preview
go-importgithub.com/github/codeql-coding-standards git https://github.com/github/codeql-coding-standards.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id513154248
octolytics-dimension-repository_nwogithub/codeql-coding-standards
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id513154248
octolytics-dimension-repository_network_root_nwogithub/codeql-coding-standards
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
release499abb347cb197601d399c346cfeb4b3fa135d5c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-coding-standards/issues/972#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-coding-standards%2Fissues%2F972
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fgithub%2Fcodeql-coding-standards%2Fissues%2F972
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcodeql-coding-standards
Reloadhttps://github.com/github/codeql-coding-standards/issues/972
Reloadhttps://github.com/github/codeql-coding-standards/issues/972
Reloadhttps://github.com/github/codeql-coding-standards/issues/972
github https://github.com/github
codeql-coding-standardshttps://github.com/github/codeql-coding-standards
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Fork 72 https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Star 181 https://github.com/login?return_to=%2Fgithub%2Fcodeql-coding-standards
Code https://github.com/github/codeql-coding-standards
Issues 104 https://github.com/github/codeql-coding-standards/issues
Pull requests 27 https://github.com/github/codeql-coding-standards/pulls
Actions https://github.com/github/codeql-coding-standards/actions
Projects 1 https://github.com/github/codeql-coding-standards/projects
Models https://github.com/github/codeql-coding-standards/models
Wiki https://github.com/github/codeql-coding-standards/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/github/codeql-coding-standards/security
Please reload this pagehttps://github.com/github/codeql-coding-standards/issues/972
Insights https://github.com/github/codeql-coding-standards/pulse
Code https://github.com/github/codeql-coding-standards
Issues https://github.com/github/codeql-coding-standards/issues
Pull requests https://github.com/github/codeql-coding-standards/pulls
Actions https://github.com/github/codeql-coding-standards/actions
Projects https://github.com/github/codeql-coding-standards/projects
Models https://github.com/github/codeql-coding-standards/models
Wiki https://github.com/github/codeql-coding-standards/wiki
Security https://github.com/github/codeql-coding-standards/security
Insights https://github.com/github/codeql-coding-standards/pulse
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-coding-standards/issues/972
New issuehttps://github.com/login?return_to=https://github.com/github/codeql-coding-standards/issues/972
CON51-CPP: Falsely reports potential leaks of std::lock_guardhttps://github.com/github/codeql-coding-standards/issues/972#top
Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addresshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Difficulty-Low%22
Stardard-CERT-C++https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Stardard-CERT-C%2B%2B%22
bugSomething isn't workinghttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22bug%22
false positive/false negativeAn issue related to observed false positives or false negatives.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false%20positive%2Ffalse%20negative%22
false-positiveAn issue representing a false positive report.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false-positive%22
support-sev1High urgency, continuous impact to customer business, no known workaroundhttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22support-sev1%22
user-reportIssue reported by an end user of CodeQL Coding Standardshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22user-report%22
https://github.com/MichaelRFairhurst
https://github.com/MichaelRFairhurst
MichaelRFairhursthttps://github.com/MichaelRFairhurst
on Nov 19, 2025https://github.com/github/codeql-coding-standards/issues/972#issue-3644826340
Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addresshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Difficulty-Low%22
Stardard-CERT-C++https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22Stardard-CERT-C%2B%2B%22
bugSomething isn't workinghttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22bug%22
false positive/false negativeAn issue related to observed false positives or false negatives.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false%20positive%2Ffalse%20negative%22
false-positiveAn issue representing a false positive report.https://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22false-positive%22
support-sev1High urgency, continuous impact to customer business, no known workaroundhttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22support-sev1%22
user-reportIssue reported by an end user of CodeQL Coding Standardshttps://github.com/github/codeql-coding-standards/issues?q=state%3Aopen%20label%3A%22user-report%22
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.