Skip to content

Commit 7e8d494

Browse files
committed
core: use memcpy_safe()
Fixes #9738.
1 parent a6aadf4 commit 7e8d494

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3216,7 +3216,7 @@ static int exec_child(
32163216
}
32173217

32183218
fds_with_exec_fd = newa(int, n_fds + 1);
3219-
memcpy(fds_with_exec_fd, fds, n_fds * sizeof(int));
3219+
memcpy_safe(fds_with_exec_fd, fds, n_fds * sizeof(int));
32203220
fds_with_exec_fd[n_fds] = exec_fd;
32213221
n_fds_with_exec_fd = n_fds + 1;
32223222
} else {

0 commit comments

Comments
 (0)