diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-04-14 15:19:24 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-21 11:08:03 -0600 |
| commit | 185fdf5e94731df05748b1c576effb52ff7a3ec5 (patch) | |
| tree | 5c1a5e065022bf4be00203c65760de3d7254e276 /include | |
| parent | 3e6bbc5adc20242a5056cfa142782debc0c368b5 (diff) | |
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 <[email protected]>
Reviewed-by: Joao Marcos Costa <[email protected]>
Reviewed-by: Joao Marcos Costa <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
