]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2image: pass the correct size write_header
authorTheodore Ts'o <tytso@mit.edu>
Mon, 2 Dec 2013 18:14:43 +0000 (13:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Dec 2013 18:14:43 +0000 (13:14 -0500)
commit4c2ae57d38f60fa74ecd5bb681c8fb80fba59b6a
treef91acbd63e693f373b6e5057aab35193a869747e
parent5f16f6c337feca8bdfb728af8585626e72a69640
e2image: pass the correct size write_header

Commit bf0449b1a654, which added the ability to write qcow2 files,
generalized the write_header() file to take the size of the header
structure which it writes out.  Unfortunately, it changed the call
which supported original e2image format to pass in fs->blocksize,
instead of the actual size of the e2image header structure (which is
substantially smaller than fs->blocksize).  This meant that we copied
in stack garbage into the e2image file, and it made valgrind quite
unhappy.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/e2image.c