Skip to content

Stabilize commons infrastructure for attack_surface_approximation compatibility#8

Draft
krpandrei05 wants to merge 4 commits into
mainfrom
krpandrei/fix/attack-surface-approximation-support
Draft

Stabilize commons infrastructure for attack_surface_approximation compatibility#8
krpandrei05 wants to merge 4 commits into
mainfrom
krpandrei/fix/attack-surface-approximation-support

Conversation

@krpandrei05

@krpandrei05 krpandrei05 commented May 9, 2026

Copy link
Copy Markdown

Converted filenames to absolute paths before passing them to Docker. This ensures correct bind-mounting and avoids 400 Bad Request errors on Linux hosts.

Fixes: #7, Fixes: #9

Converted filenames to absolute paths before passing them to Docker. This ensures correct bind-mounting and avoids 400 Bad Request errors on Linux hosts.

Fixes: #7
Signed-off-by: Andrei Carp <andrei.krp@gmail.com>
@krpandrei05 krpandrei05 requested a review from razvand May 9, 2026 20:54
@krpandrei05 krpandrei05 self-assigned this May 9, 2026
Added replacements for Ghidra-specific types like undefined8, bool, and uint in the decompiled code. This prevents ParseError when pycparser processes the main function.

Signed-off-by: Andrei Carp <andrei.krp@gmail.com>
…acts

Implemented fallback to Entry Point in decompile_function.py when 'main' is missing. Updated ghidra.py with a robust regex to strip all C-style comments and a cleaner for Ghidra-specific artifacts (processEntry, PTR_FUN_, stack references) to ensure compatibility with pycparser.

Fixes: #9
Signed-off-by: Andrei Carp <andrei.krp@gmail.com>
@krpandrei05 krpandrei05 force-pushed the krpandrei/fix/attack-surface-approximation-support branch from 111731a to 20b423d Compare May 10, 2026 00:46
Updated pyproject.toml to use a fixed Python version (3.12.7) and ensured all core dependencies are pinned to exact versions for consistency across the CRS environment.

Signed-off-by: Andrei Carp <andrei.krp@gmail.com>

@razvand razvand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a blank line between Fixes and the Signed-off-by message.

Limit commit messages to 72 characters.

Start commit title with capital, i.e. instead of support stripped binaries ..., use Support stripped binaries ...

Use Python instead of python.

@razvand razvand requested a review from AmaliaI12 June 5, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants