From 7e8d494b33cf593e332f3c710c9c26aee4b88dd9 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 8 Aug 2018 15:52:46 +0900 Subject: [PATCH] core: use memcpy_safe() Fixes #9738. --- src/core/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/execute.c b/src/core/execute.c index a35dbac9ef..ecf0f7c404 100644 --- 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 { -- 2.25.1