[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240106141027.2ed2f890@hermes.local>
Date: Sat, 6 Jan 2024 14:10:27 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Maks Mishin <maks.mishinfz@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] lnstat: Fix deref of null in print_json() function
On Sat, 6 Jan 2024 22:04:23 +0300
Maks Mishin <maks.mishinfz@...il.com> wrote:
> Now pointer `jw` is being checked for NULL before using
> in function `jsonw_start_object`.
> Added exit from function when `jw==NULL`.
>
> Found by RASU JSC
>
> Signed-off-by: Maks Mishin <maks.mishinFZ@...il.com>
Probably not worth fixing.
If the malloc() of 20 bytes ever fails then something is really wrong.
The Linux kernel will kill the process first.
Powered by blists - more mailing lists