[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20221024093923.179944-1-zeming@nfschina.com>
Date: Mon, 24 Oct 2022 17:39:22 +0800
From: Li zeming <zeming@...china.com>
To: bagasdotme@...il.com
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org,
masahiroy@...nel.org, zeming@...china.com
Subject: Re: [PATCH] lxdialog: menubox: Add malloc allocation judgment
If malloc allocation fails, the menu_item pointer cannot be executed, because when the strncpy function is executed, there will be a problem with the null pointer. Adding an if statement should ensure that the allocation fails and will not be executed.
thanks.
Powered by blists - more mailing lists