diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-11 20:18:11 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-11 20:18:11 -0500 |
| commit | 189ec853d318526e6b31f25ee4e39c52a6715a5f (patch) | |
| tree | c68b6e2fc20be8dfa8b700aaefd2df3ef9d40ced /plugins | |
| parent | e856d391d377d0a723563925bb0a841ead5ae012 (diff) | |
WARP: Bump warp dependency
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/Cargo.toml | 2 | ||||
| -rw-r--r-- | plugins/warp/src/lib.rs | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/plugins/warp/Cargo.toml b/plugins/warp/Cargo.toml index 2d17ecae..38641072 100644 --- a/plugins/warp/Cargo.toml +++ b/plugins/warp/Cargo.toml @@ -9,7 +9,7 @@ crate-type = ["lib", "cdylib"] [dependencies] binaryninja = { path = "../../rust", features = ["rayon"] } binaryninjacore-sys = { path = "../../rust/binaryninjacore-sys" } -warp = { git = "https://github.com/Vector35/warp/", rev = "b54768f" } +warp = { git = "https://github.com/Vector35/warp/", rev = "bae7379" } log = "0.4" arboard = "3.4" rayon = "1.10" diff --git a/plugins/warp/src/lib.rs b/plugins/warp/src/lib.rs index d098cd5b..2c50d978 100644 --- a/plugins/warp/src/lib.rs +++ b/plugins/warp/src/lib.rs @@ -9,7 +9,7 @@ use binaryninja::llil::{ ExprInfo, FunctionMutability, InstrInfo, NonSSA, NonSSAVariant, Register, VisitorAction, }; use binaryninja::rc::Ref as BNRef; -use warp::signature::basic_block::{BasicBlock, BasicBlockGUID}; +use warp::signature::basic_block::BasicBlockGUID; use warp::signature::function::constraints::FunctionConstraints; use warp::signature::function::{Function, FunctionGUID}; @@ -41,20 +41,9 @@ pub fn build_function<A: Architecture, M: FunctionMutability, V: NonSSAVariant>( // NOTE: Adding caller sites only works if analysis is complete. caller_sites: Default::default(), }, - // TODO: We need more than one entry block. - entry: entry_basic_block_guid(func, llil).map(BasicBlock::new), } } -pub fn entry_basic_block_guid<A: Architecture, M: FunctionMutability, V: NonSSAVariant>( - func: &BNFunction, - llil: &llil::Function<A, M, NonSSA<V>>, -) -> Option<BasicBlockGUID> { - // NOTE: This is not actually the entry point. This is the highest basic block. - let first_basic_block = sorted_basic_blocks(func).into_iter().next()?; - Some(basic_block_guid(&first_basic_block, llil)) -} - /// Basic blocks sorted from high to low. pub fn sorted_basic_blocks(func: &BNFunction) -> Vec<BNRef<BNBasicBlock<NativeBlock>>> { let mut basic_blocks = func |
