]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib,cpuset: enforce stricter parsing of cpu lists
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 9 Sep 2011 09:19:33 +0000 (11:19 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 22:00:33 +0000 (00:00 +0200)
commitf27ce0711cb9b2611a4bf679f83607439462cbb0
tree8072a364c885e2c3c570397c427327f7430dc899
parent72232a267a8b021c5170419062f8ae831f18ca0e
lib,cpuset: enforce stricter parsing of cpu lists

The current cpulist_parse() function ignores extra non-parsable characters at
the end of the to be parsed cpu list string.  E.g. it would accept something
like "0bla" and just set bit 0 in the cpu set.  Since such a string is invalid
implement stricter parsing that makes sure that everything of the string has
been succesfully parsed.

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