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

Simon Glass sjg at chromium.org
Tue Oct 27 05:52:17 CET 2020


On Fri, 23 Oct 2020 at 05:00, Heinrich Schuchardt <xypron.glpk at gmx.de> 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>
> ---
>  common/log.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list