Merge "simpleperf: fix a heap buffer overflow reported by hwasan."