[PATCH 6.8 092/143] libperf evlist: Avoid out-of-bounds access