summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/architecture.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs
index c7fbe5f1..3ea21514 100644
--- a/rust/src/architecture.rs
+++ b/rust/src/architecture.rs
@@ -1966,9 +1966,9 @@ pub struct BasicBlockAnalysisContext {
pub translate_tail_calls: bool,
pub disallow_branch_to_string: bool,
pub max_function_size: u64,
- pub max_size_reached: bool,
// In/Out
+ pub max_size_reached: bool,
contextual_returns: HashMap<ArchAndAddr, bool>,
// Out
@@ -2179,6 +2179,10 @@ impl BasicBlockAnalysisContext {
}
}
+ unsafe {
+ (*self.handle).maxSizeReached = self.max_size_reached;
+ }
+
if self.contextual_returns_dirty {
let total = self.contextual_returns.len();
let mut locations: Vec<BNArchitectureAndAddress> = Vec::with_capacity(total);