From 48fe3815a0434dadb35cc27032b6126a85c96c09 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Sun, 3 Mar 2024 13:51:08 +0800 Subject: [PATCH] Do not use removed rz_bin_get_info() API (#346) --- src/ArchMap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ArchMap.cpp b/src/ArchMap.cpp index 1d8d8588..3157f460 100644 --- a/src/ArchMap.cpp +++ b/src/ArchMap.cpp @@ -139,7 +139,10 @@ static const std::map compiler_map = { std::string CompilerFromCore(RzCore *core) { - RzBinInfo *info = rz_bin_get_info(core->bin); + RzBinObject *bobj = rz_bin_cur_object(core->bin); + if (!bobj) + return std::string(); + const RzBinInfo *info = rz_bin_object_get_info(bobj); if (!info || !info->rclass) return std::string();