From d9e95c0546846567de6774e28ffc511a63abaf33 Mon Sep 17 00:00:00 2001 From: Woongsuk Cho Date: Tue, 28 Nov 2023 20:42:47 +0900 Subject: [PATCH] Check library extension more To handle ".so.{number}" case, add more checking logic --- NativeLauncher/tool/tac_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NativeLauncher/tool/tac_common.cc b/NativeLauncher/tool/tac_common.cc index dcd5c1d..71623b3 100644 --- a/NativeLauncher/tool/tac_common.cc +++ b/NativeLauncher/tool/tac_common.cc @@ -439,7 +439,7 @@ std::vector getLibrariesInfo(const std::string& rootPath) return LibrariesInfo; auto convert = [&LibrariesInfo](const std::string& filepath, const std::string& filename) { - if (filename.find(".so", filename.size() - 3) != std::string::npos) { + if (filename.find(".so", filename.size() - 3) != std::string::npos || filepath.rfind(".so.") != std::string::npos) { std::string buffer = SHA256(filepath); LibrariesInfo.push_back(filepath + ":" + buffer); _INFO("Library : [%s] / SHA256 : [%s]", filename.c_str(), buffer.c_str()); -- 2.7.4