From f682ca69b356755fe6c06bcdd8f4fab73f7d2c78 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Wed, 22 Nov 2023 18:57:28 -0300 Subject: Rust API : Add HLIL Bindings --- rust/src/mlil/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/mlil/block.rs') diff --git a/rust/src/mlil/block.rs b/rust/src/mlil/block.rs index 734d6512..015c7ba4 100644 --- a/rust/src/mlil/block.rs +++ b/rust/src/mlil/block.rs @@ -21,7 +21,7 @@ impl Iterator for MediumLevelILBlockIter { .map(|i| unsafe { BNGetMediumLevelILIndexForInstruction(self.function.handle, i as usize) }) - .map(|i| MediumLevelILInstruction::new(&self.function, i)) + .map(|i| MediumLevelILInstruction::new(self.function.to_owned(), i)) } } @@ -43,7 +43,7 @@ impl BlockContext for MediumLevelILBlock { let expr_idx = unsafe { BNGetMediumLevelILIndexForInstruction(self.function.handle, block.raw_start() as usize) }; - MediumLevelILInstruction::new(&self.function, expr_idx) + MediumLevelILInstruction::new(self.function.to_owned(), expr_idx) } fn iter(&self, block: &BasicBlock) -> MediumLevelILBlockIter { -- cgit v1.3.1