u-boot/fs/squashfs
Andrea della Porta e22b2d7781 fs/squashfs: Fix memory leak in sqfs_size_nest()
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@suse.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
2025-03-05 12:14:31 -06:00
..
Kconfig include/u-boot, lib/zlib: add sources for zlib decompression 2020-08-07 22:31:32 -04:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
sqfs.c fs/squashfs: Fix memory leak in sqfs_size_nest() 2025-03-05 12:14:31 -06:00
sqfs_decompressor.c fs/squashfs: enable LZ4 compression support 2023-11-16 18:53:09 -05:00
sqfs_decompressor.h fs/squashfs: remove unused declarations 2023-11-16 18:53:09 -05:00
sqfs_dir.c squashfs: Fix compilation on big endian systems 2022-06-03 11:15:24 -04:00
sqfs_filesystem.h fs/squashfs: remove unused declarations 2023-11-16 18:53:09 -05:00
sqfs_inode.c squashfs: Fix sqfs_inode_size() for xattr related SQFS_LSYMLINK_TYPE 2025-01-18 08:29:10 -06:00
sqfs_utils.h fs/squashfs: remove unused declarations 2023-11-16 18:53:09 -05:00