From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lothar =?UTF-8?B?V2HDn21hbm4=?= Date: Wed, 5 Jul 2017 08:25:40 +0200 Subject: [U-Boot] [PATCH 3/5] fdt: Allow stacked overlays phandle references In-Reply-To: <822fa395-bca7-82ec-a795-4e4be5ef8fbc@denx.de> References: <1498839782-4702-1-git-send-email-pantelis.antoniou@konsulko.com> <1498839782-4702-4-git-send-email-pantelis.antoniou@konsulko.com> <822fa395-bca7-82ec-a795-4e4be5ef8fbc@denx.de> Message-ID: <20170705082540.1a8029e2@karo-electronics.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi, On Sat, 1 Jul 2017 16:07:47 +0200 Marek Vasut wrote: > On 06/30/2017 06:23 PM, Pantelis Antoniou wrote: >=20 [...] > > + buf =3D malloc(FDT_PATH_MAX); > > + if (!buf) > > + return -FDT_ERR_NOSPACE; >=20 > Would it make sense to allocate this on stack ? >=20 buffers on stack are a disatrous stack overflow waiting to happen. Lothar Wa=C3=9Fmann