diff --git a/ChangeLog b/ChangeLog index 454aef8ed..d7d5c40e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-01-20 Vladimir Serbinenko + + * grub-core/fs/ufs.c (grub_ufs_mount): Check + that sblock.ino_per_group is not 0. + 2015-01-20 Vladimir Serbinenko Reject NILFS2 superblocks with over 1GiB blocks. diff --git a/grub-core/fs/ufs.c b/grub-core/fs/ufs.c index 4a2161cc7..f560ad380 100644 --- a/grub-core/fs/ufs.c +++ b/grub-core/fs/ufs.c @@ -604,7 +604,8 @@ grub_ufs_mount (grub_disk_t disk) endiannesses. */ if (data->sblock.magic == grub_cpu_to_ufs32_compile_time (GRUB_UFS_MAGIC) && data->sblock.bsize != 0 - && ((data->sblock.bsize & (data->sblock.bsize - 1)) == 0)) + && ((data->sblock.bsize & (data->sblock.bsize - 1)) == 0) + && data->sblock.ino_per_group != 0) { for (data->log2_blksz = 0; (1U << data->log2_blksz) < grub_ufs_to_cpu32 (data->sblock.bsize);