[PATCH AUTOSEL 6.6 14/16] selftests/resctrl: Protect against array overflow when reading strings