Re: [PATCH] fs/sqaushfs: avoid illegal free() in sqfs_opendir()

2025-04-14 Thread João Marcos Costa
Hello, Heinrich Em sex., 11 de abr. de 2025 às 09:19, Heinrich Schuchardt < heinrich.schucha...@canonical.com> escreveu: > * 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. > > Addresse

[PATCH] fs/sqaushfs: avoid illegal free() in sqfs_opendir()

2025-04-11 Thread Heinrich Schuchardt
* 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 --- fs/squashfs/sqfs.c | 10 +