[PATCH 6.2 0477/1001] perf record: Fix segfault with --overwrite and --max-size