u-boot/fs/squashfs
Heinrich Schuchardt 185fdf5e94 fs/squashfs: avoid illegal free() in sqfs_opendir()
* Use calloc() to allocate token_list. This avoids an illegal free if
  sqfs_tokenize() fails.
* Do not iterate over token_list if it has not been allocated.

Addresses-Coverity-ID: 510453:  Null pointer dereferences  (FORWARD_NULL)
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Reviewed-by: Joao Marcos Costa <jmcosta944@gmail.com>
2025-04-21 11:08:03 -06:00
..
Kconfig include/u-boot, lib/zlib: add sources for zlib decompression 2020-08-07 22:31:32 -04:00
Makefile Kbuild: Always use $(PHASE_) 2025-04-11 12:16:44 -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
sqfs.c fs/squashfs: avoid illegal free() in sqfs_opendir() 2025-04-21 11:08:03 -06:00