commit | 2a0cbf3bca372dcbc79048d475c817d4e462069e | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Fri Oct 23 13:00:01 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Oct 27 17:04:15 2020 -0400 |
tree | 4f12560f10151c4fe5b7bb2a58e2b04bee035f45 | |
parent | 920157678b863bc34b655212a4bc0d29f84b4a80 [diff] |
log: correct and check array size of log categories 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@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>