diff options
author | Heiko Carstens | 2011-09-09 11:19:33 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-10 00:00:33 +0200 |
commit | f27ce0711cb9b2611a4bf679f83607439462cbb0 (patch) | |
tree | 8072a364c885e2c3c570397c427327f7430dc899 /sys-utils/chcpu.c | |
parent | lib,cpuset: fix stride handling in cpulist_parse() (diff) | |
download | kernel-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