diff options
| author | Rubens Brandao <git@rubens.io> | 2023-11-22 18:57:28 -0300 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-02-02 13:32:45 -0500 |
| commit | f682ca69b356755fe6c06bcdd8f4fab73f7d2c78 (patch) | |
| tree | 3cfc324cfe8043ccc8db1161f1f90c448d097c8a /rust/src/functionrecognizer.rs | |
| parent | e1a6bdcd576f7caeaa6f97ff1e337a259057b333 (diff) | |
Rust API : Add HLIL Bindings
Diffstat (limited to 'rust/src/functionrecognizer.rs')
| -rw-r--r-- | rust/src/functionrecognizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/functionrecognizer.rs b/rust/src/functionrecognizer.rs index ec567308..c63edcab 100644 --- a/rust/src/functionrecognizer.rs +++ b/rust/src/functionrecognizer.rs @@ -70,7 +70,7 @@ where let custom_handler = unsafe { &*(ctxt as *mut R) }; let bv = unsafe { BinaryView::from_raw(BNNewViewReference(bv)) }; let func = unsafe { Function::from_raw(BNNewFunctionReference(func)) }; - let mlil = unsafe { mlil::MediumLevelILFunction::from_raw(mlil) }; + let mlil = unsafe { mlil::MediumLevelILFunction::ref_from_raw(mlil) }; custom_handler.recognize_medium_level_il(bv.as_ref(), func.as_ref(), &mlil) } |
