Support const, virtual, override, and non-void return epilogues in OBF_METHOD (#9)

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
compilers

Research direction

Read Obfusk8/Instrumentation/materialization/transform/PASSES/obf_cmethods.cxx and inspect how OBF_METHOD_ expands around method_body. Check existing tests or examples for non-void methods and member qualifiers, then confirm the macro handles returns and const, noexcept, override, and virtual methods. Done when these forms compile and epilogue obfuscation runs before each return.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Sub-task of #9. In Obfusk8/Instrumentation/materialization/transform/PASSES/obf_cmethods.cxx, OBF_METHOD_ places OBF_BOGUS_FLOW_WEAVER() after method_body (which is unreachable after a return statement in non-void methods) and does not accept member qualifiers such as const, noexcept, override, or virtual. Run epilogue obfuscation through an RAII scope guard before return and add support for C++ member method qualifiers.

Dominant language
C++
Stars
845
Forks
87
Avg merge
17h 4m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from x86byte/Obfusk8

All issues in x86byte/Obfusk8

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.