[PATCH 6.6 073/114] libperf evlist: Avoid out-of-bounds access