We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6aadf4 commit 7e8d494Copy full SHA for 7e8d494
1 file changed
src/core/execute.c
@@ -3216,7 +3216,7 @@ static int exec_child(
3216
}
3217
3218
fds_with_exec_fd = newa(int, n_fds + 1);
3219
- memcpy(fds_with_exec_fd, fds, n_fds * sizeof(int));
+ memcpy_safe(fds_with_exec_fd, fds, n_fds * sizeof(int));
3220
fds_with_exec_fd[n_fds] = exec_fd;
3221
n_fds_with_exec_fd = n_fds + 1;
3222
} else {
0 commit comments