From 189ec853d318526e6b31f25ee4e39c52a6715a5f Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 11 Nov 2024 20:18:11 -0500 Subject: WARP: Bump warp dependency --- plugins/warp/Cargo.toml | 2 +- plugins/warp/src/lib.rs | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) (limited to 'plugins') 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( // 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( - func: &BNFunction, - llil: &llil::Function>, -) -> Option { - // 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>> { let mut basic_blocks = func -- cgit v1.3.1