Whamcloud - gitweb
resize2fs: Fix potential memory corruption in ext2fs_progress_init()
authorManish Katiyar <mkatiyar@gmail.com>
Wed, 1 Oct 2008 23:42:57 +0000 (19:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Oct 2008 23:42:57 +0000 (19:42 -0400)
commit520a17729242e11408df6bd73c873860b63988bf
treef026aead85a7bbcc7dcb9c3532d584f0e96ada70
parent03206bd82580b5d5bf491c9465d61e7b27d38c46
resize2fs: Fix potential memory corruption in ext2fs_progress_init()

Check the return value of ext2fs_get_mem, since prog isn't initialized
so checking may miss a failed memory allocation.

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/sim_progress.c