[PATCH V4 05/15] selftests/resctrl: Protect against array overflow when reading strings