Check library extensions more accurately accepted/tizen/unified/20230825.044242
authorj-h.choi <j-h.choi@samsung.com>
Thu, 24 Aug 2023 00:52:30 +0000 (09:52 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Thu, 24 Aug 2023 01:12:14 +0000 (10:12 +0900)
NativeLauncher/tool/tac_common.cc

index 874b4b8..dcd5c1d 100644 (file)
@@ -439,7 +439,7 @@ std::vector<std::string> getLibrariesInfo(const std::string& rootPath)
                return LibrariesInfo;
 
        auto convert = [&LibrariesInfo](const std::string& filepath, const std::string& filename) {
-               if (filepath.rfind(".so") != std::string::npos) {
+               if (filename.find(".so", filename.size() - 3) != std::string::npos) {
                        std::string buffer = SHA256(filepath);
                        LibrariesInfo.push_back(filepath + ":" + buffer);
                        _INFO("Library : [%s] / SHA256 : [%s]", filename.c_str(), buffer.c_str());