]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - resize/resize2fs.c
Fix 32-bit overflow problems: dgrp_t * s_blocks_per_group
authorTheodore Ts'o <tytso@mit.edu>
Thu, 3 Jan 2013 18:42:38 +0000 (13:42 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Jan 2013 15:14:11 +0000 (10:14 -0500)
commit027b0577d4e5081a4d28dff9289559d38a36d533
treedf65e7fb7c9e45d11c23d00396e90a0e07c414b6
parenta0ba54ec00abce6ce9e7e5f2d5f6e0899559ebb8
Fix 32-bit overflow problems: dgrp_t * s_blocks_per_group

There are a number of places where we multiply a dgrp_t with
s_blocks_per_group expecting that we will get a blk64_t.  This
requires a cast, or using the convenience function
ext2fs_group_first_block2().

This audit was suggested by Eric Sandeen.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
e2fsck/super.c
lib/ext2fs/alloc.c
lib/ext2fs/extent.c
lib/ext2fs/mkjournal.c
resize/resize2fs.c