[U-Boot] [PATCH 3/5] fdt: Allow stacked overlays phandle references

Lothar Waßmann
2017-07-05T06:25:40Z

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