diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-06-30 13:46:52 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-07-01 23:23:25 -0400 |
| commit | 7871953325024282191116771022201477045749 (patch) | |
| tree | 2e55b48cd8c2152ebeae85d1f617c9287628c762 /rust/src | |
| parent | 3369388279087234793382558126227582393316 (diff) | |
Python: Collect and pass mappings when copying MLIL functions
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/workflow.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
