From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 19 Aug 2018 21:51:48 -0400 Subject: [U-Boot] [PATCH 8/8] hashtable: Fix zero-sized array undefined behavior In-Reply-To: <20180820000033.25519-9-erosca@de.adit-jv.com> References: <20180820000033.25519-1-erosca@de.adit-jv.com> <20180820000033.25519-9-erosca@de.adit-jv.com> Message-ID: <20180820015148.GH11769@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 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 -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: