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 --- binaryninjaapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 898a1711..bec3474f 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -5080,8 +5080,10 @@ namespace BinaryNinja { /*! Undefine a DataVariable at a given address \param addr virtual address of the DataVariable + \param blacklist whether to add the address to the data variable black list so that the auto analysis would + not recreate the variable on re-analysis */ - void UndefineDataVariable(uint64_t addr); + void UndefineDataVariable(uint64_t addr, bool blacklist = true); /*! Undefine a user DataVariable at a given address -- cgit v1.3.1