Spdk/test/unit/lib/util/cpuset.c
Tomasz Kulasek 1c2163b944 util/cpuset: fix internal string buffer size
When all CPUs are set, formatted string overflows str buffer in the
spdk_cpuset structure with '\0'.

It may destroy CPUs bitmap when formatting is used, so additional
integrity checks are performed in UT.

Change-Id: I92ac790b2c215428cbe0ae89ab4b28570ddb9a0d
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-on: https://review.gerrithub.io/c/440021
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-01-12 11:19:12 +00:00
..
.gitignore util: extend cpumask to hold more than 64 cpus 2018-01-25 18:51:50 -05:00
cpuset_ut.c util/cpuset: fix internal string buffer size 2019-01-12 11:19:12 +00:00
Makefile build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00