[PATCH AUTOSEL 6.6 51/75] libperf evlist: Avoid out-of-bounds access