[PATCH openEuler-5.10 43/71] perf arm-spe: Avoid potential buffer overrun