projects
/
platform
/
core
/
api
/
nsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce129a
)
Fix NULL pointer dereference
42/268942/1
accepted/tizen/unified/20220107.120853
submit/tizen/20220105.095940
author
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 5 Jan 2022 05:40:44 +0000
(14:40 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Wed, 5 Jan 2022 05:40:44 +0000
(14:40 +0900)
Change-Id: I9b098d8fcb559ef672a65c79105f83a6e2224474
tests/mock/nsd-mock-dns-sd.c
patch
|
blob
|
history
diff --git
a/tests/mock/nsd-mock-dns-sd.c
b/tests/mock/nsd-mock-dns-sd.c
index 6634b54d55adff394f6a92cf1cdf44fc01c1a812..84f06c11a30ccbdfeabd60f347f35e2fa4bfdfa6 100644
(file)
--- a/
tests/mock/nsd-mock-dns-sd.c
+++ b/
tests/mock/nsd-mock-dns-sd.c
@@
-108,6
+108,8
@@
static ipc_msg_hdr *create_hdr(uint32_t op, size_t *len, char **data_start, int
// Write message to buffer
msg = malloc(*len);
+ if (msg == NULL)
+ return NULL;
memset(msg, 0, *len);
hdr = (ipc_msg_hdr *)msg;