From: Tom Rini Date: Mon, 4 Jun 2018 17:58:43 -0400 Subject: [U-Boot] [PATCH] fdt: Fix string property comparison overflow In-Reply-To: References: <20180603202244.2c6a88e14dd9cfb67f0cee04@gmail.com> Message-ID: <20180604215843.GG21194@bill-the-cat.ec.rr.com> 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, Jun 04, 2018 at 06:42:28AM +0100, Peter Robinson wrote: > On Mon, Jun 4, 2018 at 1:22 AM, Teddy Reed wrote: > > FDT property searching can overflow when comparing strings. This will > > result in undefined behavior. > > > > This check assures that property name lengths do not overrun the string > > region or the totalsize. > > The lib/libfdt is mostly a sync from upstream dtc [1] so I suspect > it's a problem there too and should probably sent and accepted there > and it'll then be pulled back in a resync. > > Peter > > [1] https://git.kernel.org/pub/scm/utils/dtc/dtc.git Indeed, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: