From 84172132ffed56cb1ff97b33d729a3daeb637736 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 2 Oct 2024 12:55:43 +0800 Subject: Make sure the undefined data variable does not get recreated by auto-analysis. Fix https://github.com/Vector35/binaryninja-api/issues/5817 --- rust/src/binaryview.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/binaryview.rs') diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs index ed35bc76..6c8020c6 100644 --- a/rust/src/binaryview.rs +++ b/rust/src/binaryview.rs @@ -585,9 +585,9 @@ pub trait BinaryViewExt: BinaryViewBase { } } - fn undefine_auto_data_var(&self, addr: u64) { + fn undefine_auto_data_var(&self, addr: u64, blacklist: Option) { unsafe { - BNUndefineDataVariable(self.as_ref().handle, addr); + BNUndefineDataVariable(self.as_ref().handle, addr, blacklist.unwrap_or(true)); } } -- cgit v1.3.1