]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix potential Floating Point Exception in show_stats()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 Dec 2017 02:46:36 +0000 (21:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Dec 2017 02:46:36 +0000 (21:46 -0500)
commit53600d306dbb0eb901a04d76a4a97f45777d39c8
tree927d100f452af8ccb836953807d7ddc2bf9848f5
parentf222de72566dbad0c7ae9abb1bcbe2d1fd55b126
e2fsck: fix potential Floating Point Exception in show_stats()

If the free inodes count in the superblock is equal to the inodes
count in the superblock (which is not possible with a valid file
system and will be fixed by e2fsck unless it is prevented by, for
example, e2fsck -n), it is possible for e2fsck to crash due to a
divide by zero error.

Fix this potential bug.

Addresses-Debian-Bug: #879220

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/unix.c