From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 27 Aug 2018 10:13:33 -0400 Subject: [U-Boot] [PATCH v2 12/13] input: Fix zero-sized array In-Reply-To: <20180826231332.2491-13-erosca@de.adit-jv.com> References: <20180826231332.2491-1-erosca@de.adit-jv.com> <20180826231332.2491-13-erosca@de.adit-jv.com> Message-ID: <20180827141333.GR26633@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: