]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: correct size for dont_close array in close_remaining_fds()
authorMike Yuan <me@yhndnzj.com>
Sat, 28 Feb 2026 21:14:51 +0000 (22:14 +0100)
committerMike Yuan <me@yhndnzj.com>
Sun, 1 Mar 2026 12:55:39 +0000 (13:55 +0100)
Follow-up for 79dd24cf14adc809620479d45a7b469cf3e82892

src/core/exec-invoke.c

index 39b087a3d968f785a588be1aa6db389efed27efc..3dff6050216d2784b9b9944700eef0481ef637a9 100644 (file)
@@ -4293,7 +4293,7 @@ static int close_remaining_fds(
                 size_t n_fds) {
 
         size_t n_dont_close = 0;
-        int dont_close[n_fds + 17];
+        int dont_close[n_fds + 19];
 
         assert(params);
         assert(runtime);