René's URL Explorer Experiment


Title: fuzzing crash in `Macro::expandToken()` · Issue #414 · cppcheck-opensource/simplecpp · GitHub

Open Graph Title: fuzzing crash in `Macro::expandToken()` · Issue #414 · cppcheck-opensource/simplecpp

X Title: fuzzing crash in `Macro::expandToken()` · Issue #414 · cppcheck-opensource/simplecpp

Description: #define S(z)defined z##C S(, simplecpp.cpp:2133:58: runtime error: member call on null pointer of type 'const struct Token' #0 0x5cd316211cbd in simplecpp::Macro::expandToken(simplecpp::TokenList*, simplecpp::Location const&, simplecpp::...

Open Graph Description: #define S(z)defined z##C S(, simplecpp.cpp:2133:58: runtime error: member call on null pointer of type 'const struct Token' #0 0x5cd316211cbd in simplecpp::Macro::expandToken(simplecpp::TokenList*,...

X Description: #define S(z)defined z##C S(, simplecpp.cpp:2133:58: runtime error: member call on null pointer of type 'const struct Token' #0 0x5cd316211cbd in simplecpp::Macro::expandToken(simplecpp::Tok...

Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/414

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fuzzing crash in `Macro::expandToken()`","articleBody":"```cpp\n#define S(z)defined z##C\nS(,\n```\n\n```\nsimplecpp.cpp:2133:58: runtime error: member call on null pointer of type 'const struct Token'\n    #0 0x5cd316211cbd in simplecpp::Macro::expandToken(simplecpp::TokenList*, simplecpp::Location const&, simplecpp::Token const*, std::unordered_map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, simplecpp::Macro, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > const, simplecpp::Macro> > > const&, std::set\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, std::less\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > > > const&, std::vector\u003csimplecpp::Token const*, std::allocator\u003csimplecpp::Token const*> > const&) const /home/user/CLionProjects/simplecpp/simplecpp.cpp:2133\n    #1 0x5cd316205f6d in simplecpp::Macro::expand(simplecpp::TokenList*, simplecpp::Location const&, simplecpp::Token const*, std::unordered_map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, simplecpp::Macro, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > const, simplecpp::Macro> > > const&, std::set\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, std::less\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > > >) const /home/user/CLionProjects/simplecpp/simplecpp.cpp:1960\n    #2 0x5cd31621eca8 in simplecpp::Macro::expand(simplecpp::TokenList*, simplecpp::Token const*, std::unordered_map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, simplecpp::Macro, std::hash\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::equal_to\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > const, simplecpp::Macro> > > const&, std::vector\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > > >&) const /home/user/CLionProjects/simplecpp/simplecpp.cpp:1609\n    #3 0x5cd31618cfd7 in preprocessToken /home/user/CLionProjects/simplecpp/simplecpp.cpp:3383\n    #4 0x5cd3161a64dc in simplecpp::preprocess(simplecpp::TokenList&, simplecpp::TokenList const&, std::vector\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, std::allocator\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > > >&, std::map\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> >, simplecpp::TokenList*, std::less\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > >, std::allocator\u003cstd::pair\u003cstd::__cxx11::basic_string\u003cchar, std::char_traits\u003cchar>, std::allocator\u003cchar> > const, simplecpp::TokenList*> > >&, simplecpp::DUI const&, std::__cxx11::list\u003csimplecpp::Output, std::allocator\u003csimplecpp::Output> >*, std::__cxx11::list\u003csimplecpp::MacroUsage, std::allocator\u003csimplecpp::MacroUsage> >*, std::__cxx11::list\u003csimplecpp::IfCond, std::allocator\u003csimplecpp::IfCond> >*) /home/user/CLionProjects/simplecpp/simplecpp.cpp:3870\n    #5 0x5cd31615434b in main /home/user/CLionProjects/simplecpp/main.cpp:131\n    #6 0x7eb122434e07  (/usr/lib/libc.so.6+0x25e07) (BuildId: aed3a2b0cf4e6cc12296052529af22f6a450a75a)\n    #7 0x7eb122434ecb in __libc_start_main (/usr/lib/libc.so.6+0x25ecb) (BuildId: aed3a2b0cf4e6cc12296052529af22f6a450a75a)\n    #8 0x5cd316157d64 in _start (/home/user/CLionProjects/simplecpp/simplecpp+0xd3d64) (BuildId: 22b24a767d764a7022955d2ad253a49d3ad9afc0)\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2025-02-12T13:23:45Z","url":"https://github.com/cppcheck-opensource/simplecpp/issues/414"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aa955923-7b1c-6fd1-02d5-ae5079a8a326
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idED94:AB760:529AF:76FCF:6AFC51DF
html-safe-nonce70759a100eb2d48e1098e0f222ad21a62f34c31a6b5e3692be14b004083b7adc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDk0OkFCNzYwOjUyOUFGOjc2RkNGOjZBRkM1MURGIiwidmlzaXRvcl9pZCI6IjY3Nzc5Mzc5MzIyNzY0ODY2MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacceb1b8d030710a9f2caaf116fef89198f6ba1e9cbff7e7f1aa19f0854fc2fbee
hovercard-subject-tagissue:2848231164
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/cppcheck-opensource/simplecpp/414/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dfa0c934afaf98185aa3b75b1f8edadb5cde645840f4a5085ac0279c519c3b89/cppcheck-opensource/simplecpp/issues/414
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dfa0c934afaf98185aa3b75b1f8edadb5cde645840f4a5085ac0279c519c3b89/cppcheck-opensource/simplecpp/issues/414
og:image:alt#define S(z)defined z##C S(, simplecpp.cpp:2133:58: runtime error: member call on null pointer of type 'const struct Token' #0 0x5cd316211cbd in simplecpp::Macro::expandToken(simplecpp::TokenList*,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefirewave
hostnamegithub.com
expected-hostnamegithub.com
Noneb63557e0027d8014589e873df28328da74a4356701bb1a9eab49dbf012ba8fa6
turbo-cache-controlno-preview
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
release0243355b0352c83733a042e0dfb3d75149b51261
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/cppcheck-opensource/simplecpp/issues/414#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fsimplecpp%2Fissues%2F414
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%2Fsimplecpp%2Fissues%2F414
Sign uphttps://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=cppcheck-opensource%2Fsimplecpp
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/414
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/414
Reloadhttps://github.com/cppcheck-opensource/simplecpp/issues/414
cppcheck-opensourcehttps://github.com/cppcheck-opensource
simplecpphttps://github.com/cppcheck-opensource/simplecpp
Codehttps://github.com/cppcheck-opensource/simplecpp
Issues86 (86)https://github.com/cppcheck-opensource/simplecpp/issues
Pull requests36 (36)https://github.com/cppcheck-opensource/simplecpp/pulls
Actionshttps://github.com/cppcheck-opensource/simplecpp/actions
Wikihttps://github.com/cppcheck-opensource/simplecpp/wiki
Security and qualityhttps://github.com/cppcheck-opensource/simplecpp/security
Insightshttps://github.com/cppcheck-opensource/simplecpp/pulse
https://github.com/cppcheck-opensource/simplecpp
New issuehttps://github.com/login?return_to=https://github.com/cppcheck-opensource/simplecpp/issues/414
New issuehttps://github.com/login?return_to=https://github.com/cppcheck-opensource/simplecpp/issues/414
fuzzing crash in Macro::expandToken()https://github.com/cppcheck-opensource/simplecpp/issues/414#top
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
crashhttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22crash%22
https://github.com/firewave
firewavehttps://github.com/firewave
on Feb 12, 2025https://github.com/cppcheck-opensource/simplecpp/issues/414#issue-2848231164
firewavehttps://github.com/firewave
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 12, 2025https://github.com/cppcheck-opensource/simplecpp/issues/414#event-16280891596
https://github.com/firewave
firewavehttps://github.com/firewave
on Sep 6, 2025https://github.com/cppcheck-opensource/simplecpp/issues/414#issuecomment-3262077662
firewavehttps://github.com/firewave
crashhttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22crash%22
on Sep 11, 2025https://github.com/cppcheck-opensource/simplecpp/issues/414#event-19630699003
Sign up for freehttps://github.com/signup?return_to=https://github.com/cppcheck-opensource/simplecpp/issues/414
Sign in to commenthttps://github.com/login?return_to=https://github.com/cppcheck-opensource/simplecpp/issues/414
bughttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22bug%22
crashhttps://github.com/cppcheck-opensource/simplecpp/issues?q=state%3Aopen%20label%3A%22crash%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.