mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
@@ -995,6 +995,9 @@ void GtManagerService::APP_QueryAppInfo(const char *appDir, AppInfoList *list)
|
||||
return;
|
||||
}
|
||||
char *fileName = reinterpret_cast<char *>(AdapterMalloc(MAX_NAME_LEN + 1));
|
||||
if (fileName == nullptr) {
|
||||
return;
|
||||
}
|
||||
while ((ent = readdir(dir)) != nullptr) {
|
||||
if (memset_s(fileName, MAX_NAME_LEN + 1, 0, MAX_NAME_LEN + 1) != EOK) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user