From 7871953325024282191116771022201477045749 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Mon, 30 Jun 2025 13:46:52 -0400 Subject: Python: Collect and pass mappings when copying MLIL functions --- rust/src/workflow.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs index ea69d941..0f0f869d 100644 --- a/rust/src/workflow.rs +++ b/rust/src/workflow.rs @@ -10,6 +10,7 @@ use crate::medium_level_il::MediumLevelILFunction; use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Guard, Ref, RefCountable}; use crate::string::{BnString, IntoCStr}; use std::ffi::{c_char, c_void}; +use std::ptr; use std::ptr::NonNull; #[repr(transparent)] @@ -83,7 +84,8 @@ impl AnalysisContext { } pub fn set_mlil_function(&self, value: &MediumLevelILFunction) { - unsafe { BNSetMediumLevelILFunction(self.handle.as_ptr(), value.handle) } + // TODO: Mappings FFI + unsafe { BNSetMediumLevelILFunction(self.handle.as_ptr(), value.handle, ptr::null_mut(), 0, ptr::null_mut(), 0) } } /// [`HighLevelILFunction`] used to represent High Level IL -- cgit v1.3.1