]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs/squashfs: Fix Coverity Scan defects
authorJoao Marcos Costa <joaomarcos.costa@bootlin.com>
Wed, 19 Aug 2020 16:28:41 +0000 (18:28 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Aug 2020 18:11:31 +0000 (14:11 -0400)
commitc9875a5fe85901b272c8e7db1b9bce513f02f1af
tree00b980dbf8219e20a4ee148702120a8afde6744d
parent6b0ddd1fbc6c8f7cbd0418e8a87d02404ad3dd9b
fs/squashfs: Fix Coverity Scan defects

Fix defects such as uninitialized variables and untrusted pointer
operations. Most part of the tainted variables and the related defects
actually comes from Linux's macro get_unaligned_le**, extensively used
in SquashFS code. Add sanity checks for those variables.

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
fs/squashfs/sqfs.c
fs/squashfs/sqfs_dir.c
fs/squashfs/sqfs_inode.c