[PATCH 6.6 204/356] selftests/resctrl: Protect against array overflow when reading strings