[PATCH] fs/squashfs: Fix memory leak in sqfs_size_nest()
Miquel Raynal
miquel.raynal at bootlin.com
Mon Mar 3 09:21:46 CET 2025
Hi Andrea,
On 02/03/2025 at 19:29:31 +01, Andrea della Porta <andrea.porta at suse.com> wrote:
> In case MAX_SYMLINK_NEST is reached while determining the size
> on a symlink node, the function returns immediately.
> This would not free the resources after the free_strings: label
> causing a memory leak.
>
> Set the ret value and just break out of the switch to fix this.
>
> Signed-off-by: Andrea della Porta <andrea.porta at suse.com>
Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
Thanks,
Miquèl
More information about the U-Boot
mailing list