[PATCH AUTOSEL 6.12 20/23] selftests/resctrl: Protect against array overflow when reading strings