Re: [PATCH v1 1/8] perf disasm: Avoid undefined behavior in incrementing NULL
From: Kuan-Wei Chiu
Date: Sat Dec 14 2024 - 07:33:40 EST
On Fri, Dec 13, 2024 at 01:04:18PM -0800, Ian Rogers wrote:
> Incrementing NULL is undefined behavior and triggers ubsan during the
> perf annotate test. Split a compound statement over two lines to avoid
> this.
>
> Fixes: 98f69a573c66 ("perf annotate: Split out util/disasm.c")
> Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Reviewed-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
Regards,
Kuan-Wei