[PATCH 6.6 158/676] selftests/resctrl: Protect against array overrun during iMC config parsing