summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-06-16 17:20:26 -0400
committerBrian Potchik <brian@vector35.com>2025-06-16 17:20:26 -0400
commit5cab99afa06eb32265fee4798cbfc83bd6a8ae4d (patch)
treea641c9e2f86c29aa78dc50598477cc861e22df6e /rust/src
parent979515fb42365fbe6f000086ef13c125150f36c3 (diff)
Update SymbolQueue API to support types with confidence.
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/binary_view.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/rust/src/binary_view.rs b/rust/src/binary_view.rs
index 0a1a380b..c4aaf32d 100644
--- a/rust/src/binary_view.rs
+++ b/rust/src/binary_view.rs
@@ -528,10 +528,13 @@ pub trait BinaryViewExt: BinaryViewBase {
plat: &Platform,
ty: T,
) -> Result<Ref<Symbol>> {
- let raw_type = if let Some(t) = ty.into() {
- t.handle
- } else {
- std::ptr::null_mut()
+ let mut type_with_conf = BNTypeWithConfidence {
+ type_: if let Some(t) = ty.into() {
+ t.handle
+ } else {
+ std::ptr::null_mut()
+ },
+ confidence: 255, // BN_FULL_CONFIDENCE
};
unsafe {
@@ -539,7 +542,7 @@ pub trait BinaryViewExt: BinaryViewBase {
self.as_ref().handle,
plat.handle,
sym.handle,
- raw_type,
+ &mut type_with_conf,
);
if raw_sym.is_null() {