summaryrefslogtreecommitdiff
path: root/ui/viewframe.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-05-23 16:39:08 -0400
committerBrian Potchik <brian@vector35.com>2025-05-23 16:39:08 -0400
commit71ca9eb697f58b44023ddac06659d46e37e37361 (patch)
treefcc1ce9414a84eb64cbe3d66796cf5f54c649cd4 /ui/viewframe.h
parent627456d0321e6079d57a6a19ba368e0345e8252c (diff)
Fix spurious cross-reference updates during startup initialization. Save the polar bears.
Diffstat (limited to 'ui/viewframe.h')
-rw-r--r--ui/viewframe.h10
1 files changed, 6 insertions, 4 deletions
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)