[U-Boot] [PATCH 8/8] hashtable: Fix zero-sized array undefined behavior
Tom Rini
trini at konsulko.com
Mon Aug 20 01:51:48 UTC 2018
On Mon, Aug 20, 2018 at 02:00:32AM +0200, Eugeniu Rosca wrote:
> Enabling CONFIG_UBSAN=y, below runtime warning occurs both in sandbox
> and R-Car H3 Salvator-X U-Boot:
>
> =====================================================================
> UBSAN: Undefined behaviour in lib/hashtable.c:784:8
> variable length array bound value 0 <= 0
> =====================================================================
>
> It has a slightly different wording when compiling sandbox U-Boot
> with "gcc-8 -fsanitize=undefined -lubsan":
>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180819/13a9dae3/attachment.sig>
More information about the U-Boot
mailing list