Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions plugins/workflow_objc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ log = "0.4"
dashmap = { version = "6.1", features = ["rayon"]}
once_cell = "1.20"
thiserror = "2.0"
bstr = "1.12"
1 change: 1 addition & 0 deletions plugins/workflow_objc/src/activities/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod inline_stubs;
pub mod objc_msg_send_calls;
pub mod super_init;
11 changes: 9 additions & 2 deletions plugins/workflow_objc/src/activities/objc_msg_send_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use binaryninja::{
};

use crate::{
error::ILLevel,
metadata::{GlobalState, Selector},
Error,
};
Expand All @@ -31,11 +32,17 @@ pub fn process(ac: &AnalysisContext) -> Result<(), Error> {

let func_start = ac.function().start();
let Some(llil) = (unsafe { ac.llil_function() }) else {
return Err(Error::MissingLowLevelIL { func_start });
return Err(Error::MissingIL {
level: ILLevel::Low,
func_start,
});
};

let Some(ssa) = llil.ssa_form() else {
return Err(Error::MissingSsaForm { func_start });
return Err(Error::MissingSsaForm {
level: ILLevel::Low,
func_start,
});
};

let func = ac.function();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ use binaryninja::{
};

use super::MessageSendType;
use crate::{metadata::Selector, Error};

const HEURISTIC_CONFIDENCE: u8 = 192;
use crate::{metadata::Selector, workflow::Confidence, Error};

fn named_type(bv: &BinaryView, name: &str) -> Option<Ref<Type>> {
bv.type_by_name(name)
Expand Down Expand Up @@ -68,7 +66,7 @@ pub fn process_call(
let func_type = Type::function(&return_type, params, false);
func.set_auto_call_type_adjustment(
insn.address(),
Conf::new(func_type, HEURISTIC_CONFIDENCE).as_ref(),
Conf::new(func_type, Confidence::ObjCMsgSend as u8).as_ref(),
Some(arch),
);

Expand Down
Loading
Loading