projects
/
platform
/
core
/
dotnet
/
launcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ce034
)
Add null check
05/146405/1
submit/tizen/20170828.100558
author
JongHeon Choi
<j-h.choi@samsung.com>
Mon, 28 Aug 2017 10:01:38 +0000
(19:01 +0900)
committer
JongHeon Choi
<j-h.choi@samsung.com>
Mon, 28 Aug 2017 10:01:48 +0000
(19:01 +0900)
Change-Id: I94bb4d6f6a3b56e71bc25b7f2a9bf5ba6f233b2c
NativeLauncher/installer-plugin/common.cc
patch
|
blob
|
history
diff --git
a/NativeLauncher/installer-plugin/common.cc
b/NativeLauncher/installer-plugin/common.cc
index 8ba2a09ecbd52b3e191b216388282852bcadf0ac..74b6f1814795026a3f4acfa8a5c0427177dd9c51 100644
(file)
--- a/
NativeLauncher/installer-plugin/common.cc
+++ b/
NativeLauncher/installer-plugin/common.cc
@@
-132,6
+132,10
@@
static void crossgen(const char* dllPath, const char* appPath)
// get reference API directory ([DEVICE_API_DIR]/ref)
int len = strlen(__DEVICE_API_DIR);
char* refAPIDir = (char*)calloc(len + 4, 1);
+ if (!refAPIDir) {
+ printf("fail to allocate memory for reference API directory\n");
+ return;
+ }
snprintf(refAPIDir, len + 4, "%s%s", __DEVICE_API_DIR, "/ref");
tpaDir.push_back(refAPIDir);