SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
change ghidra out path to enable cache
Talor Abramovich823e0d24b169
diff --git a/config/commands/decompile.py b/config/commands/decompile.pyindex d8c8090b..857041f6 100644--- a/config/commands/decompile.py+++ b/config/commands/decompile.py@@ -62,7 +62,7 @@ class Decompile:def decompile(self, binary, function):# Look for the decompilation output in "decomp"basename = Path(binary).name- decomp_output = Path(f"ghidra_out/{basename}.decomp.json")+ decomp_output = Path(f"/ghidra_out/{basename}.decomp.json")if not decomp_output.exists():if not self.run_ghidra(basename, decomp_output):return f"Error: Decompilation for {binary} not available"diff --git a/config/commands/disassemble.py b/config/commands/disassemble.pyindex 36fe3f67..cc593d51 100644--- a/config/commands/disassemble.py+++ b/config/commands/disassemble.py@@ -62,7 +62,7 @@ class Disassemble:def disassemble(self, binary, function):# Look for the disassembly output in "disas"basename = Path(binary).name- disas_output = Path(f"ghidra_out/{basename}.disas.json")+ disas_output = Path(f"/ghidra_out/{basename}.disas.json")if not disas_output.exists():if not self.run_ghidra(basename, disas_output):return f"Error: Disassembly for {binary} not available"