[PATCH] fs/squashfs: Fix memory leak in sqfs_size_nest()
Tom Rini
trini at konsulko.com
Thu Mar 6 16:41:15 CET 2025
On Sun, 02 Mar 2025 19:29:31 +0100, Andrea della Porta 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.
>
> [...]
Applied to u-boot/master, thanks!
[1/1] fs/squashfs: Fix memory leak in sqfs_size_nest()
commit: e22b2d778106256b44e8ed32e6ad7a5d8fff3ebd
--
Tom
More information about the U-Boot
mailing list