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 d1a7ffc commit 8f4dab0Copy full SHA for 8f4dab0
src/core/exec-invoke.c
@@ -3459,7 +3459,7 @@ static int close_remaining_fds(
3459
const int *fds, size_t n_fds) {
3460
3461
size_t n_dont_close = 0;
3462
- int dont_close[n_fds + 14];
+ int dont_close[n_fds + 15];
3463
3464
assert(params);
3465
@@ -3495,6 +3495,8 @@ static int close_remaining_fds(
3495
if (params->user_lookup_fd >= 0)
3496
dont_close[n_dont_close++] = params->user_lookup_fd;
3497
3498
+ assert(n_dont_close <= ELEMENTSOF(dont_close));
3499
+
3500
return close_all_fds(dont_close, n_dont_close);
3501
}
3502
0 commit comments