From: Tom Rini Date: Wed, 28 Oct 2020 11:32:09 -0400 Subject: [PATCH 1/1] log: correct and check array size of log categories In-Reply-To: <20201023110001.6261-1-xypron.glpk@gmx.de> References: <20201023110001.6261-1-xypron.glpk@gmx.de> Message-ID: <20201028153209.GJ5340@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 23, 2020 at 01:00:01PM +0200, Heinrich Schuchardt wrote: > The log command has led to NULL dereferences if an unknown category name > name was used due to missing entries in the list of category names. > > Add compile time checks for the array sizes of log_cat_name and > log_lvl_name to avoid future mishaps. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: