You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for fuzzing C++ projects – member functions excluded from func_gadgets.json #43
During the function gadget extraction stage, eliminate_irrelative_ast is invoked in parse_header_ast to filter out unrelated AST nodes. However, CXXMethodDecl is excluded in the current logic, which causes all member functions to be omitted from func_gadgets.json.
Besides, I didn't find CXXMethodDecl in enum Clang defined in src/ast/mod.rs.
Since member functions are a core trait of C++ programming, excluding them significantly limits PromptFuzz’s applicability to real-world C++ projects. Is it a engineering defect or Is there a specific reason it was excluded?
@mcc0612mcc0612 Thanks for reaching out and raising your questions. PromptFuzz currently only support fuzzing on real-word C libraries. Current version of PromptFuzz only supported limited C++ Features that are necessary to write fuzzing harnesses for wrapping C APIs.
Supporting whole C++ features reuqires a lot of engineer works on PromptFuzz, which involves support these nodes in AST-based analysis and harness synthesis. Multi-language support is a critical feature for further enhancing PromptFuzz. But due to my limited free time, I think I couldn't finish it recently.
If anyone want to participate in or have ideas about the Multi-language feature development, I can provide my help.
Activity
Yunlongs commentedon Sep 22, 2025
@mcc0612mcc0612 Thanks for reaching out and raising your questions. PromptFuzz currently only support fuzzing on real-word C libraries. Current version of PromptFuzz only supported limited C++ Features that are necessary to write fuzzing harnesses for wrapping C APIs.
Supporting whole C++ features reuqires a lot of engineer works on PromptFuzz, which involves support these nodes in AST-based analysis and harness synthesis. Multi-language support is a critical feature for further enhancing PromptFuzz. But due to my limited free time, I think I couldn't finish it recently.
If anyone want to participate in or have ideas about the Multi-language feature development, I can provide my help.