Skip to content
Commit 16423294 authored by Mikhail Ilin's avatar Mikhail Ilin Committed by Tom Rini
Browse files

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: default avatarMikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent c059a22b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment