balrog~ ELF file analysis tool to be used after firmware extraction |
| git clone https://github.com/djnnvx/balrog.git |
| log | files | refs | archive | README |
| commit 8b5823192096534e89b0c25f6064c45dd812fdda
parent be6d7ca4889af8f9c9d4be995af8a4f8f72d7d60 Author: djnn <[email protected]> Date: Wed, 30 Sep 2026 01:12:58 +0900 fix(arch): bound sweep memory with chunked disassembly Diffstat:
|
| 1 file changed, 2 insertions(+), 0 deletions(-) |
diff --git a/src/arch/mod.rs b/src/arch/mod.rs @@ -100,6 +100,8 @@ pub fn build(arch: Arch, little: bool) -> Result<Capstone> { Ok(cs) } +const SWEEP_CHUNK: usize = 8192; + pub fn sweep(cs: &Capstone, bin: &Binary) -> Vec<Ins> { let align = bin.arch.align(); let mut out = Vec::new(); |