OSDN Git Service

mke2fs: fix crash when parsing "-E resize=NNN" with "-O 64bit"
authorTheodore Ts'o <tytso@mit.edu>
Fri, 28 Dec 2012 23:26:12 +0000 (18:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 28 Dec 2012 23:26:12 +0000 (18:26 -0500)
commit49cdefd3312c5ac81ec5d233d62441281ad26e55
treefc256e3572ec4b1a2ef1f5dac91667b45bcd5d01
parent0e5e7284ab7e70d77995754bf78f530a33d71d86
mke2fs: fix crash when parsing "-E resize=NNN" with "-O 64bit"

If the 64-bit file system feature is enabled, then mke2fs would crash
due to a divide-by-zero error caused by s_desc_size not being
initialized yet.

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c