Skip to content

Add a script to clean up pseudocode generated by common decompilers to improve Semgrep parsing #12

@0xdea

Description

@0xdea

Suggested improvements from https://cc-sw.com/semgrep-guide-for-a-security-engineer-part-5-of-6/:

Remove IDA decorators that have shown to cause issues with Semgrep parser:

virtual thunk to
non-virtual thunk to
vtable for
typeinfo for
guard variable for
VTT for

See also: semgrep-vs-decompiler.zip

Ghidra has some decorators which we want to remove from our code files:

__thiscall
__cdecl
__noreturn
__fastcall

[TODO: check if they're indeed problematic and if there are others, consider opening an issue/PR with Semgrep]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions