]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: Improve P argument check
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 14 Aug 2024 15:52:18 +0000 (17:52 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 04:41:41 +0000 (23:41 -0500)
commit75b8268a26b7d29f5f383bf8a71493d27d6a1892
treec03f1c1ce6056efe42270c9294f8643b4c43ea3c
parent8116f06614886209a66ad421125191c03f94f478
depmod: Improve P argument check

The command line option P takes one argument, which is supposed to
contain exactly one character. The current check performs an out
of boundary read if an empty string is supplied.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/73
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c