mirror of
https://github.com/nilfs-dev/nilfs-utils.git
synced 2026-01-26 13:43:15 +00:00
Accesses to finfo in nilfs_file_next() and nilfs_file_init() can overrun since the termination condition of the file iterator is tested after these functions return and the position of finfo is checked afterwards as well. This fixes the issue by inserting pre-checks for the position of finfo before reading it. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>