]> git.ipfire.org Git - thirdparty/util-linux.git/commit - lib/cpuset.c
lib,cpuset: fix stride handling in cpulist_parse()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 9 Sep 2011 09:19:32 +0000 (11:19 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 22:00:24 +0000 (00:00 +0200)
commit72232a267a8b021c5170419062f8ae831f18ca0e
tree8774ed6a665ab2a8e724308c6e5703f49b0f2162
parent289127f52ddaeec8484d5321a3169a2bb5026b58
lib,cpuset: fix stride handling in cpulist_parse()

If cpulist_parse() gets passed a cpu list with a stride value of 0 it will be
stuck in an endless loop.  E.g. the following cpu list will cause an endless
loop: "0-2:0".  Fix this by causing a parse error if the stride value is 0.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
lib/cpuset.c