[U-Boot] [PATCH v2 12/13] input: Fix zero-sized array

Tom Rini trini at konsulko.com
Mon Aug 27 14:13:33 UTC 2018


On Mon, Aug 27, 2018 at 01:13:30AM +0200, Eugeniu Rosca wrote:

> Fix below UBSAN reports, thrown on sandbox:
> 
>  ============================================================
>  UBSAN: Undefined behaviour in drivers/input/input.c:512:7
>  variable length array bound value 0 <= 0
>  ============================================================
>  ============================================================
>  UBSAN: Undefined behaviour in drivers/input/input.c:340:6
>  variable length array bound value 0 <= 0
>  ============================================================
> 
> Inspired from Linux v4.11-rc1 commit 620711944459 ("crypto:
> algif_hash - avoid zero-sized array").
> 
> Fixes: 9bc590e5119f ("input: Add generic keyboard input handler")
> Signed-off-by: Eugeniu Rosca <erosca at de.adit-jv.com>

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/20180827/5d1abb6d/attachment.sig>


More information about the U-Boot mailing list