projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6aadf4
)
core: use memcpy_safe()
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 06:52:46 +0000
(15:52 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 08:11:43 +0000
(17:11 +0900)
Fixes #9738.
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index
a35dbac
..
ecf0f7c
100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-3216,7
+3216,7
@@
static int exec_child(
}
fds_with_exec_fd = newa(int, n_fds + 1);
- memcpy(fds_with_exec_fd, fds, n_fds * sizeof(int));
+ memcpy
_safe
(fds_with_exec_fd, fds, n_fds * sizeof(int));
fds_with_exec_fd[n_fds] = exec_fd;
n_fds_with_exec_fd = n_fds + 1;
} else {