]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: (pidutils) improve 'PID:inode' parsing logic
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Wed, 14 Jan 2026 14:51:58 +0000 (09:51 -0500)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 23 Jan 2026 18:52:21 +0000 (13:52 -0500)
commit505d5dc68420d75f95eb12c88c5ebeda84898e2b
treee8280dbfdeb226c1606aa4ca97250fa2e0b91a2b
parentdb6c2b8fe4520090f0cf903d6fae1ca24a662d87
lib: (pidutils) improve 'PID:inode' parsing logic

The parsing logic in ul_parse_pid_str() failed to
identify invalid input when *pidstr starts with a
colon ':' followed by a number (inode), and also
in cases where the input does not consist of any
digits. And lastly if the PID or inode is 0.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
lib/pidutils.c