[PATCH v2020.01] tool: ifwitool: The function localtime() can return NULL.
Tom Rini
trini at konsulko.com
Thu Dec 8 21:23:14 CET 2022
On Fri, Nov 18, 2022 at 11:50:02AM +0300, Mikhail Ilin wrote:
> 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 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221208/8f639189/attachment.sig>
More information about the U-Boot
mailing list