Fixed prevent defect 51981
authorHoseon LEE <hoseon46.lee@samsung.com>
Tue, 23 Apr 2013 02:39:32 +0000 (11:39 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Tue, 23 Apr 2013 04:45:55 +0000 (13:45 +0900)
[Issue#] Prevent 51981
[Problem] memory allocation size error
[Cause] momory allocation size error
[Solution] Size value is fixed
[SCMRequest] N/A

Change-Id: Ie78ee3e75ef1673a0e007cc77e97ddd03ac324c6

src/pkg-manager/backendlib.cpp

index b342b1a..497bf3f 100644 (file)
@@ -457,7 +457,7 @@ pkgmgr_info *pkgmgr_client_check_pkginfo_from_file(const char *pkg_path)
     LogDebug("pkgmgr_client_check_pkginfo_from_file() is called");
     package_manager_pkg_detail_info_t *pkg_detail_info;
     pkg_detail_info = (package_manager_pkg_detail_info_t*)malloc(
-            sizeof(package_manager_pkg_info_t));
+            sizeof(package_manager_pkg_detail_info_t));
     int ret = getWidgetDetailInfoFromPackage(pkg_path, pkg_detail_info);
     if (FALSE == ret) {
         LogError("Failed to get package detail info ");