commit | 2d11b4625861711cd63cd76785aca2abdbcd740e | [log] [tgz] |
---|---|---|
author | Mikhail Ilin <ilin.mikhail.ol@gmail.com> | Fri Nov 18 11:50:02 2022 +0300 |
committer | Tom Rini <trini@konsulko.com> | Thu Dec 08 09:25:44 2022 -0500 |
tree | 529df4fc2a03552f12605531db462ff6f9fde2de | |
parent | 18ca44962bea5b679fc79305706fc4ed31f97124 [diff] |
tool: ifwitool: The function localtime() can return NULL. This will cause the local_time pointer is passed as the 4th argument to function strftime() to also point to NULL. This result in a segmentation fault. Thus, it's necessary to add a check of the local_time pointer to NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>