]> git.ipfire.org Git - thirdparty/kmod.git/commit
tools: Check snprintf return value
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 14 Aug 2024 15:50:34 +0000 (17:50 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 23 Sep 2024 14:48:15 +0000 (09:48 -0500)
commit4f8a6a85c58770b3c4212780026215faab2f33a4
tree5fff09d07474f231752474ea9adba58f245b831a
parent1005e99ef05a910857843a299fe9c83e26e4c74f
tools: Check snprintf return value

If an excessively large root directory is supplied, subsequent
operations might process unexpected parts in file system.

Inform user that supplied directory paths are too long and stop
program execution.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/72
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c
tools/modinfo.c
tools/modprobe.c
tools/static-nodes.c