[PATCH 1/1] log: correct and check array size of log categories

Tom Rini trini at konsulko.com
Wed Oct 28 16:32:09 CET 2020


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 <xypron.glpk at gmx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20201028/cba38ada/attachment.sig>


More information about the U-Boot mailing list