Re: [PATCH v1] perf symbol: Avoid an undefined behavior warning

From: Namhyung Kim
Date: Sun Sep 17 2023 - 01:30:02 EST


On Wed, Sep 13, 2023 at 9:42 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> The node (nd) may be NULL and pointer arithmetic on NULL is undefined
> behavior. Move the computation of next below the NULL check on the
> node.
>
> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>

Applied to perf-tools-next, thanks!

Namhyung