projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b0d47e
)
[FIX] Prevent issue
31/27031/1
author
Dmitry Kovalenko
<d.kovalenko@samsung.com>
Wed, 3 Sep 2014 11:11:57 +0000
(15:11 +0400)
committer
Dmitry Kovalenko
<d.kovalenko@samsung.com>
Wed, 3 Sep 2014 11:13:29 +0000
(15:13 +0400)
Change-Id: I0b39c2f283a3beb08cbfbb818e301252a40440ca
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
daemon/daemon.c
patch
|
blob
|
history
diff --git
a/daemon/daemon.c
b/daemon/daemon.c
index
e264f74
..
d232a68
100644
(file)
--- a/
daemon/daemon.c
+++ b/
daemon/daemon.c
@@
-792,6
+792,8
@@
static int controlSocketHandler(int efd)
if (recv_len == -1 || recv_len == 0)
return -11;
else {
+ if (msg_head.len > RECV_BUF_MAX)
+ return -1;
msg = malloc(MSG_CMD_HDR_LEN + msg_head.len);
if (!msg) {
LOGE("Cannot alloc msg\n");