René's URL Explorer Experiment


Title: fixed #342/fixed #343 - do not treat directories like regular files in existence checks by firewave · Pull Request #339 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: fixed #342/fixed #343 - do not treat directories like regular files in existence checks by firewave · Pull Request #339 · cppcheck-opensource/simplecpp

X Title: fixed #342/fixed #343 - do not treat directories like regular files in existence checks by firewave · Pull Request #339 · cppcheck-opensource/simplecpp

Description: C++ preprocessor. Contribute to cppcheck-opensource/simplecpp development by creating an account on GitHub.

Open Graph Description: std::ifstream can open directories and read from them without issue. Nothing will be read though - it is like an empty file. This would have treated an include which actually pointed to a directory...

X Description: std::ifstream can open directories and read from them without issue. Nothing will be read though - it is like an empty file. This would have treated an include which actually pointed to a directory...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b0950a67-bedd-c8fd-3da6-115dcc4e7f06
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FF4:397AD8:55023:6C713:6A4ECC58
html-safe-noncede9fee838ac5caafcc282ea85239403577a4b87b5a3b7dedad5251a023a6e488
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkY0OjM5N0FEODo1NTAyMzo2QzcxMzo2QTRFQ0M1OCIsInZpc2l0b3JfaWQiOiI5MjIwNDQyNjU2MTk0MDg4MDI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb61a783e1b2a63a2e0bc7e21f694347b307e2274762a783df47b522256d8bd96
hovercard-subject-tagpull_request:1728361420
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/cppcheck-opensource/simplecpp/339/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b4bb6fa31638dc823f9c09aa396a89502346dc9fcca44c1f3c03a1b09f8550bb/cppcheck-opensource/simplecpp/pull/339
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4bb6fa31638dc823f9c09aa396a89502346dc9fcca44c1f3c03a1b09f8550bb/cppcheck-opensource/simplecpp/pull/339
og:image:altstd::ifstream can open directories and read from them without issue. Nothing will be read though - it is like an empty file. This would have treated an include which actually pointed to a directory...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefirewave
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
go-importgithub.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id33434464
octolytics-dimension-repository_nwocppcheck-opensource/simplecpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33434464
octolytics-dimension-repository_network_root_nwocppcheck-opensource/simplecpp
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/pull/339#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F339
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F339
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=cppcheck-opensource%2Fsimplecpp
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/339
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/339
Reloadhttps://github.com/cppcheck-opensource/simplecpp/pull/339
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
cppcheck-opensource https://github.com/cppcheck-opensource
simplecpphttps://github.com/cppcheck-opensource/simplecpp
Notifications https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Fork 104 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Star 263 https://github.com/login?return_to=%2Fcppcheck-opensource%2Fsimplecpp
Code https://github.com/cppcheck-opensource/simplecpp
Issues 82 https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests 31 https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality 0 https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
Code https://github.com/cppcheck-opensource/simplecpp
Issues https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests https://github.com/cppcheck-opensource/simplecpp/pulls
Actions https://github.com/cppcheck-opensource/simplecpp/actions
Wiki https://github.com/cppcheck-opensource/simplecpp/wiki
Security and quality https://github.com/cppcheck-opensource/simplecpp/security
Insights https://github.com/cppcheck-opensource/simplecpp/pulse
firewavehttps://github.com/firewave
cppcheck-opensource:masterhttps://github.com/cppcheck-opensource/simplecpp/tree/master
firewave:inchttps://github.com/firewave/simplecpp/tree/inc
Conversationhttps://github.com/cppcheck-opensource/simplecpp/pull/339
Commits3 (3)https://github.com/cppcheck-opensource/simplecpp/pull/339/commits
Checkshttps://github.com/cppcheck-opensource/simplecpp/pull/339/checks
Files changedhttps://github.com/cppcheck-opensource/simplecpp/pull/339/files
fixed #342/fixed #343 - do not treat directories like regular files in existence checkshttps://github.com/cppcheck-opensource/simplecpp/pull/339#top
firewavehttps://github.com/firewave
cppcheck-opensource:masterhttps://github.com/cppcheck-opensource/simplecpp/tree/master
firewave:inchttps://github.com/firewave/simplecpp/tree/inc
https://github.com/firewave
firewavehttps://github.com/firewave
Feb 15, 2024https://github.com/cppcheck-opensource/simplecpp/pull/339#issue-2137308005
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
https://github.com/firewave
firewavehttps://github.com/firewave
Feb 15, 2024https://github.com/cppcheck-opensource/simplecpp/pull/339#issuecomment-1947138364
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
https://github.com/firewave
firewavehttps://github.com/firewave
force-pushedhttps://github.com/cppcheck-opensource/simplecpp/compare/3ead71ce63e10d75086f3a02f42e497e0335b47b..fa994a37b315339840442a17c7b8a29464cdc7d1
3ead71chttps://github.com/cppcheck-opensource/simplecpp/commit/3ead71ce63e10d75086f3a02f42e497e0335b47b
fa994a3https://github.com/cppcheck-opensource/simplecpp/commit/fa994a37b315339840442a17c7b8a29464cdc7d1
Compare https://github.com/cppcheck-opensource/simplecpp/compare/3ead71ce63e10d75086f3a02f42e497e0335b47b..fa994a37b315339840442a17c7b8a29464cdc7d1
February 17, 2024 00:49https://github.com/cppcheck-opensource/simplecpp/pull/339#event-11834965662
https://github.com/firewave
firewavehttps://github.com/firewave
Feb 17, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/339#ref-pullrequest-2139090909
refs #342 - do not load included files twice in CLI application / added DUI::removeComment #340 https://github.com/cppcheck-opensource/simplecpp/pull/340
https://github.com/firewave
firewavehttps://github.com/firewave
May 3, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/339#ref-pullrequest-2211818863
made it possible to create a TokenList from a buffer #347 https://github.com/cppcheck-opensource/simplecpp/pull/347
https://github.com/firewave
firewavehttps://github.com/firewave
force-pushedhttps://github.com/cppcheck-opensource/simplecpp/compare/fa994a37b315339840442a17c7b8a29464cdc7d1..5bacce115754426f24750104cf509c278f57089d
fa994a3https://github.com/cppcheck-opensource/simplecpp/commit/fa994a37b315339840442a17c7b8a29464cdc7d1
5bacce1https://github.com/cppcheck-opensource/simplecpp/commit/5bacce115754426f24750104cf509c278f57089d
Compare https://github.com/cppcheck-opensource/simplecpp/compare/fa994a37b315339840442a17c7b8a29464cdc7d1..5bacce115754426f24750104cf509c278f57089d
May 24, 2024 06:55https://github.com/cppcheck-opensource/simplecpp/pull/339#event-12919956923
https://github.com/firewave
firewavehttps://github.com/firewave
May 24, 2024https://github.com/cppcheck-opensource/simplecpp/pull/339#issuecomment-2128716301
@danmarhttps://github.com/danmar
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
https://github.com/firewave
firewavehttps://github.com/firewave
May 27, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/339#ref-pullrequest-1814188876
Make ofstreams thow exception on write issues cppcheck-opensource/cppcheck#5255 https://github.com/cppcheck-opensource/cppcheck/pull/5255
https://github.com/firewave
firewavehttps://github.com/firewave
Oct 21, 2024 https://github.com/cppcheck-opensource/simplecpp/pull/339#ref-pullrequest-2602111030
fix header file search issue cppcheck-opensource/cppcheck#6939 https://github.com/cppcheck-opensource/cppcheck/pull/6939
https://github.com/firewave
firewavehttps://github.com/firewave
force-pushedhttps://github.com/cppcheck-opensource/simplecpp/compare/5bacce115754426f24750104cf509c278f57089d..779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee
5bacce1https://github.com/cppcheck-opensource/simplecpp/commit/5bacce115754426f24750104cf509c278f57089d
779a986https://github.com/cppcheck-opensource/simplecpp/commit/779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee
Compare https://github.com/cppcheck-opensource/simplecpp/compare/5bacce115754426f24750104cf509c278f57089d..779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee
August 5, 2025 14:53https://github.com/cppcheck-opensource/simplecpp/pull/339#event-18994107171
https://github.com/firewave
firewavehttps://github.com/firewave
Aug 5, 2025https://github.com/cppcheck-opensource/simplecpp/pull/339#event-18994199138
https://github.com/firewave
firewavehttps://github.com/firewave
Aug 15, 2025https://github.com/cppcheck-opensource/simplecpp/pull/339#issuecomment-3191517197
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
firewavehttps://github.com/firewave
August 23, 2025 14:58https://github.com/cppcheck-opensource/simplecpp/pull/339#commits-pushed-95d8b17
https://github.com/firewave
added the file/directory existence functions from Cppcheckhttps://github.com/cppcheck-opensource/simplecpp/pull/339/commits/95d8b174065de9aab0f66044f66ffce5a5984de4
95d8b17https://github.com/cppcheck-opensource/simplecpp/pull/339/commits/95d8b174065de9aab0f66044f66ffce5a5984de4
https://github.com/firewave
do not treat directories like regular files in existence checkshttps://github.com/cppcheck-opensource/simplecpp/pull/339/commits/85704d6bb22814e34264ee188b8a554a5e205d5c
85704d6https://github.com/cppcheck-opensource/simplecpp/pull/339/commits/85704d6bb22814e34264ee188b8a554a5e205d5c
https://github.com/firewave
test.cpp: added test to make sure the leak with empty headers no long…https://github.com/cppcheck-opensource/simplecpp/pull/339/commits/8a9eb0855ae61e71f722d88c507c97bc0e37e852
8a9eb08https://github.com/cppcheck-opensource/simplecpp/pull/339/commits/8a9eb0855ae61e71f722d88c507c97bc0e37e852
https://github.com/firewave
firewavehttps://github.com/firewave
force-pushedhttps://github.com/cppcheck-opensource/simplecpp/compare/779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee..8a9eb0855ae61e71f722d88c507c97bc0e37e852
779a986https://github.com/cppcheck-opensource/simplecpp/commit/779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee
8a9eb08https://github.com/cppcheck-opensource/simplecpp/commit/8a9eb0855ae61e71f722d88c507c97bc0e37e852
Compare https://github.com/cppcheck-opensource/simplecpp/compare/779a986c0b1bc4acf24b22dcfaec1fd34ddc3eee..8a9eb0855ae61e71f722d88c507c97bc0e37e852
August 23, 2025 12:58https://github.com/cppcheck-opensource/simplecpp/pull/339#event-19303700842
fix #381 #382 https://github.com/cppcheck-opensource/simplecpp/pull/382
main.cpp: error out when file/path provided by -I or -include=, or the input does not exist #435 https://github.com/cppcheck-opensource/simplecpp/pull/435
https://github.com/firewave
firewavehttps://github.com/firewave
Oct 1, 2025https://github.com/cppcheck-opensource/simplecpp/pull/339#event-20039302271
https://github.com/firewave
firewavehttps://github.com/firewave
Dec 14, 2025 https://github.com/cppcheck-opensource/simplecpp/pull/339#ref-pullrequest-2258436657
refs #341 - added fuzzing client #351 https://github.com/cppcheck-opensource/simplecpp/pull/351
#include pointing to directory is treated as existing empty file #343 https://github.com/cppcheck-opensource/simplecpp/issues/343
memory leak when processing empty/non-existent includes with simplecpp CLI #342 https://github.com/cppcheck-opensource/simplecpp/issues/342
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/simplecpp/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fpull%2F339
#include pointing to directory is treated as existing empty file https://github.com/cppcheck-opensource/simplecpp/issues/343
memory leak when processing empty/non-existent includes with simplecpp CLI https://github.com/cppcheck-opensource/simplecpp/issues/342
Please reload this pagehttps://github.com/cppcheck-opensource/simplecpp/pull/339
https://github.com/firewave
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.