[U-Boot] [PATCH 3/5] fdt: Allow stacked overlays phandle references
Lothar Waßmann
LW at KARO-electronics.de
Wed Jul 5 06:25:40 UTC 2017
Hi,
On Sat, 1 Jul 2017 16:07:47 +0200 Marek Vasut wrote:
> On 06/30/2017 06:23 PM, Pantelis Antoniou wrote:
>
[...]
> > + buf = malloc(FDT_PATH_MAX);
> > + if (!buf)
> > + return -FDT_ERR_NOSPACE;
>
> Would it make sense to allocate this on stack ?
>
buffers on stack are a disatrous stack overflow waiting to happen.
Lothar Waßmann
More information about the U-Boot
mailing list