[PATCH AUTOSEL 6.8 70/98] libperf evlist: Avoid out-of-bounds access