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

2020-10-28 Thread Tom Rini
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

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

2020-10-26 Thread Simon Glass
On Fri, 23 Oct 2020 at 05:00, 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

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

2020-10-23 Thread Heinrich Schuchardt
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 --- common/log.c