From 71ca9eb697f58b44023ddac06659d46e37e37361 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 23 May 2025 16:39:08 -0400 Subject: Fix spurious cross-reference updates during startup initialization. Save the polar bears. --- ui/viewframe.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ui/viewframe.h') diff --git a/ui/viewframe.h b/ui/viewframe.h index e0235603..a208154c 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -34,13 +34,13 @@ struct BINARYNINJAUIAPI SelectionInfoForXref // At any given time, at most one of these four should be true. bool addrValid, typeValid, typeFieldValid, localVarValid; - BNFunctionGraphType ilSource; + BNFunctionGraphType ilSource = InvalidILViewType; - uint64_t start; - uint64_t end; + uint64_t start = 0; + uint64_t end = 0; BinaryNinja::QualifiedName type; - uint64_t offset; + uint64_t offset = 0; BinaryNinja::Variable var; @@ -48,6 +48,8 @@ struct BINARYNINJAUIAPI SelectionInfoForXref FunctionRef func; ArchitectureRef arch; + SelectionInfoForXref() : addrValid(false), typeValid(false), typeFieldValid(false), localVarValid(false) { } + bool operator==(const SelectionInfoForXref& other) const { if (addrValid && other.addrValid) -- cgit v1.3.1