Re: [PATCH 2/5] perf symbol: Don't return an unterminated Rust demangle buffer

From: Arnaldo Carvalho de Melo

Date: Wed Sep 30 2026 - 13:19:48 EST


On Mon, Sep 28, 2026 at 02:33:45PM -0700, Ian Rogers wrote:
> On Sun, Sep 27, 2026 at 6:02 PM Michal Pluta <michalpl2003@xxxxxxxxx> wrote:
> > Free the buffer and return NULL in both cases. Callers already fall back
> > to the mangled name when no demangled name is returned.

> > Fixes: e20848c317b5 ("perf symbol-elf: Integrate rust-v0 demangling")
> > Assisted-by: LLM
> > Signed-off-by: Michal Pluta <michalpl2003@xxxxxxxxx>

> Reviewed-by: Ian Rogers <irogers@xxxxxxxxxx>

Thanks, applied the first two patches to perf-tools-next, for v7.4.

- Arnaldo