We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsk/fs/ext2fs.c can get a SIGFPE because of a divide by zero on malformed input. This happens in this code, starting from line 3353:
tsk/fs/ext2fs.c
ext2fs->groups_count = (EXT2_GRPNUM_T) ((tsk_getu32(fs->endian, ext2fs->fs->s_blocks_count) - ext2fs->first_data_block + tsk_getu32(fs->endian, ext2fs->fs->s_blocks_per_group) - 1) / tsk_getu32(fs->endian, ext2fs->fs->s_blocks_per_group));
where ext2fs->fs->s_blocks_per_group is zero. Here's a link to a sample image:
ext2fs->fs->s_blocks_per_group
https://www.dropbox.com/s/dx48hv9rriv633v/ext2-sigfpe-blocks-per-group.dd?dl=0
I have another similar example, SIGFPE on line 558:
grp_num = (EXT2_GRPNUM_T) ((dino_inum - fs->first_inum) / tsk_getu32(fs->endian, ext2fs->fs->s_inodes_per_group));
It looks like the same can happen several other places.
The text was updated successfully, but these errors were encountered:
Thanks. This was fixed as part of #543.
Sorry, something went wrong.
No branches or pull requests
tsk/fs/ext2fs.c
can get a SIGFPE because of a divide by zero on malformed input. This happens in this code, starting from line 3353:where
ext2fs->fs->s_blocks_per_group
is zero. Here's a link to a sample image:https://www.dropbox.com/s/dx48hv9rriv633v/ext2-sigfpe-blocks-per-group.dd?dl=0
I have another similar example, SIGFPE on line 558:
It looks like the same can happen several other places.
The text was updated successfully, but these errors were encountered: