commit | 7e7041dfd5ffcaa100354576e794b5ee0af7d8dc | [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 | af5e62453c1a61c474fce71277ee301475852f3a [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>