[PATCH 6.12 250/466] selftests/resctrl: Protect against array overflow when reading strings