summaryrefslogtreecommitdiffstats
path: root/sys-utils/chcpu.c
diff options
context:
space:
mode:
authorHeiko Carstens2011-09-09 11:19:33 +0200
committerKarel Zak2011-09-10 00:00:33 +0200
commitf27ce0711cb9b2611a4bf679f83607439462cbb0 (patch)
tree8072a364c885e2c3c570397c427327f7430dc899 /sys-utils/chcpu.c
parentlib,cpuset: fix stride handling in cpulist_parse() (diff)
downloadkernel-qcow2-util-linux-f27ce0711cb9b2611a4bf679f83607439462cbb0.tar.gz
kernel-qcow2-util-linux-f27ce0711cb9b2611a4bf679f83607439462cbb0.tar.xz
kernel-qcow2-util-linux-f27ce0711cb9b2611a4bf679f83607439462cbb0.zip
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>
Diffstat (limited to 'sys-utils/chcpu.c')
0 files changed, 0 insertions, 0 deletions