Title: fuzzing crash (stack-overflow) in `simplecpp::Macro::expandToken()` · Issue #662 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: fuzzing crash (stack-overflow) in `simplecpp::Macro::expandToken()` · Issue #662 · cppcheck-opensource/simplecpp
X Title: fuzzing crash (stack-overflow) in `simplecpp::Macro::expandToken()` · Issue #662 · cppcheck-opensource/simplecpp
Description: #define f)g( #define g(x)g(g(g(x)) f)))))))))))) AddressSanitizer:DEADLYSIGNAL ================================================================= ==250913==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd380f1ff8 (pc 0x7fa91bf3d1...
Open Graph Description: #define f)g( #define g(x)g(g(g(x)) f)))))))))))) AddressSanitizer:DEADLYSIGNAL ================================================================= ==250913==ERROR: AddressSanitizer: stack-overflow on...
X Description: #define f)g( #define g(x)g(g(g(x)) f)))))))))))) AddressSanitizer:DEADLYSIGNAL ================================================================= ==250913==ERROR: AddressSanitizer: stack-overflow on...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/662
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fuzzing crash (stack-overflow) in `simplecpp::Macro::expandToken()`","articleBody":"```cpp\n#define f)g(\n#define g(x)g(g(g(x))\nf))))))))))))\n```\n\n```\nAddressSanitizer:DEADLYSIGNAL\n=================================================================\n==250913==ERROR: AddressSanitizer: stack-overflow on address 0x7ffd380f1ff8 (pc 0x7fa91bf3d167 bp 0x7ffd380f2\u003e\n #0 0x7fa91bf3d167 (/usr/lib/libasan.so.8+0x13d167) (BuildId: ee5fbab73143ab257a66a33afe0f038a4af7a74e)\n #1 0x7fa91bf2d370 in operator new(unsigned long) (/usr/lib/libasan.so.8+0x12d370) (BuildId: ee5fbab73143a\u003e\n #2 0x559390b352f2 in std::__new_allocator\u003csimplecpp::Token const*\u003e::allocate(unsigned long, void const*) \u003e\n #3 0x559390b352f2 in std::allocator_traits\u003cstd::allocator\u003csimplecpp::Token const*\u003e \u003e::allocate(std::alloc\u003e\n #4 0x559390b352f2 in std::_Vector_base\u003csimplecpp::Token const*, std::allocator\u003csimplecpp::Token const*\u003e \u003e\u003e\n #5 0x559390b352f2 in void std::vector\u003csimplecpp::Token const*, std::allocator\u003csimplecpp::Token const*\u003e \u003e:\u003e\n #6 0x559390b35eb3 in void std::vector\u003csimplecpp::Token const*, std::allocator\u003csimplecpp::Token const*\u003e \u003e:\u003e\n #7 0x559390b35eb3 in simplecpp::Macro::getMacroParameters(simplecpp::Token const*, bool) const /home/user\u003e\n #8 0x559390b52e2a in simplecpp::Macro::expand(simplecpp::TokenList\u0026, simplecpp::Location const\u0026, simplecp\u003e\n #9 0x559390b45e75 in simplecpp::Macro::expandArg(simplecpp::TokenList\u0026, simplecpp::Token const*, simplecp\u003e\n #10 0x559390b48e15 in simplecpp::Macro::expandToken(simplecpp::TokenList\u0026, simplecpp::Location const\u0026, si\u003e\n[...]\n #248 0x559390b5415b in simplecpp::Macro::expand(simplecpp::TokenList\u0026, simplecpp::Location const\u0026, simple\u003e\n #249 0x559390b45e75 in simplecpp::Macro::expandArg(simplecpp::TokenList\u0026, simplecpp::Token const*, simple\u003e\n #250 0x559390b48e15 in simplecpp::Macro::expandToken(simplecpp::TokenList\u0026, simplecpp::Location const\u0026, s\u003e\n\nSUMMARY: AddressSanitizer: stack-overflow /home/user/CLionProjects/simplecpp/simplecpp.cpp:1874 in simplecpp:\u003e\n==250913==ABORTING\n```","author":{"url":"https://github.com/firewave","@type":"Person","name":"firewave"},"datePublished":"2026-06-16T21:27:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/662/simplecpp/issues/662"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92d5dc70-1192-49a8-64ca-4054880c41d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB5C:91DE5:13789E:1C64E9:6A4DFC88 |
| html-safe-nonce | 5e1daea02a67b23f5b665bb0ff995bc3d018040e87ad9e383f6e9744c70c401b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjVDOjkxREU1OjEzNzg5RToxQzY0RTk6NkE0REZDODgiLCJ2aXNpdG9yX2lkIjoiNTk4Njc0MjEwMzc5MDQ1MTg0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cdeff46d3e114564e30fb7628916a721f669b6750bc623c99f4a23bde0c5dbca |
| hovercard-subject-tag | issue:4678027569 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cppcheck-opensource/simplecpp/662/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b20f00e594bc6bfea779956db333be36a0b081f4c9efc4790653437a3ab7a1c/cppcheck-opensource/simplecpp/issues/662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b20f00e594bc6bfea779956db333be36a0b081f4c9efc4790653437a3ab7a1c/cppcheck-opensource/simplecpp/issues/662 |
| og:image:alt | #define f)g( #define g(x)g(g(g(x)) f)))))))))))) AddressSanitizer:DEADLYSIGNAL ================================================================= ==250913==ERROR: AddressSanitizer: stack-overflow on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | firewave |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4314b1df11fa8a565684f3a72dc971e3785da365 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width