[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAM9d7chh0vhpGqYRhaxeiQmbk9tr75wkVZfjEbfZrgwbYNHtng@mail.gmail.com>
Date: Wed, 21 Jun 2023 10:24:46 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Chenyuan Mi <cymi20@...an.edu.cn>, acme@...hat.com,
leo.yan@...aro.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf subcmd: Fix missing check for return value of
malloc() in add_cmdname()
On Wed, Jun 14, 2023 at 9:21 AM Ian Rogers <irogers@...gle.com> wrote:
>
> On Wed, Jun 14, 2023 at 8:01 AM Chenyuan Mi <cymi20@...an.edu.cn> wrote:
> >
> > The malloc() function may return NULL when it fails,
> > which may cause null pointer deference in add_cmdname(),
> > add Null check for return value of malloc().
> >
> > Found by our static analysis tool.
> >
> > Signed-off-by: Chenyuan Mi <cymi20@...an.edu.cn>
>
> Acked-by: Ian Rogers <irogers@...gle.com>
Applied to perf-tools-next, thanks!
Powered by blists - more mailing lists