projects
/
platform
/
core
/
appfw
/
amd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824f741
)
Add preventing invalid pointer access
author
Changgyu Choi
<changyu.choi@samsung.com>
Thu, 23 Jan 2025 10:31:38 +0000
(19:31 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Fri, 24 Jan 2025 00:11:54 +0000
(09:11 +0900)
This is for preventing crash logic.
Change-Id: Ief467637a3f7ee1f4b0ac41a4f3f2fa3edba1ece
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/lib/amd_app_status.cc
patch
|
blob
|
history
diff --git
a/src/lib/amd_app_status.cc
b/src/lib/amd_app_status.cc
index a82e4e9d1b009af6173de4437113b690023fe762..2c49c284f7a0436cecf1e6b296da67b0fa5c929b 100644
(file)
--- a/
src/lib/amd_app_status.cc
+++ b/
src/lib/amd_app_status.cc
@@
-915,6
+915,11
@@
static int DispatchAppNotifyStart(request_h request) {
auto handle = manager.Find(pid);
if (handle == nullptr) {
auto& b = req->GetBundle();
+ if (b == nullptr) {
+ _E("bundle does not exist");
+ return 0;
+ }
+
auto req_id_str = b->GetString(AUL_K_REQUEST_ID);
unsigned int req_id = std::stoul(req_id_str);
uid_t uid = req->GetUID();