]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: Fix stack overflow with many options
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 7 Mar 2026 20:08:33 +0000 (21:08 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 9 Mar 2026 19:28:45 +0000 (20:28 +0100)
commitcf2cd23b6f55735bb75944ec7c90bef0c1b87b76
tree19867392a1d1e3a24bc06b0a72cd241f55508fa8
parent85a10fad55e0e97f2942f5b71df6bfc2f5554e2f
fsck: Fix stack overflow with many options

If fsck is given too many options, a stack overflow can occur because
these options are temporarily stored in a fixed sized array on stack.

As with arguments, check if too many options are supplied and call errx
if this is the case.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
disk-utils/fsck.c