]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cpuset: Validate full tokens in cpulist_parse()
authorWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 29 Apr 2026 03:04:38 +0000 (11:04 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Thu, 7 May 2026 01:51:19 +0000 (09:51 +0800)
commit2b063ab12e0178dbb258cd4d51d9c15182326ee0
tree1d22b5268f58f55c286e2924231b78abf847af91
parent1912511be48c41724636305fce5453a2803081ec
cpuset: Validate full tokens in cpulist_parse()

Prevent silent acceptance of inputs like 1,2,3abc,4 by validating all
characters after each parsed number, not just at the end of the string.

Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
lib/cpuset.c