From dcd9cc4f62138ef94c6c496fc214045f44e62d4d Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 30 May 2024 22:20:36 -0400 Subject: Fix crash in AnalysisMergeConflict::GetPathItem --- binaryninjaapi.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index bb243e52..b5ce7010 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -18409,13 +18409,18 @@ namespace BinaryNinja::Collaboration Ref GetFirstSnapshot(); Ref GetSecondSnapshot(); - std::any GetPathItem(const std::string& path); + template T GetPathItem(const std::string& key); bool Success(std::nullopt_t value); bool Success(std::optional value); bool Success(const std::optional& value); }; + template<> std::any AnalysisMergeConflict::GetPathItem(const std::string& path); + template<> std::string AnalysisMergeConflict::GetPathItem(const std::string& path); + template<> uint64_t AnalysisMergeConflict::GetPathItem(const std::string& path); + template<> nlohmann::json AnalysisMergeConflict::GetPathItem(const std::string& path); + class TypeArchiveMergeConflict : public CoreRefCountObject { public: -- cgit v1.3.1