Whamcloud - gitweb
debugfs: fix memory allocation failures when parsing journal_write arguments
authorTheodore Ts'o <tytso@mit.edu>
Sat, 13 Feb 2021 02:43:00 +0000 (21:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 13 Feb 2021 02:43:00 +0000 (21:43 -0500)
commit462c424500a592723887b861f857650523bab359
tree39693af6cc3406db8641de7a9802254bb36bcc20
parenteef68a593f7f1a1c60be6da670cc3c7abb7d013a
debugfs: fix memory allocation failures when parsing journal_write arguments

Fix double-free issues when parsing an invalid journal_write command,
such as: "journal_write -b 12 -b BAD -b 42".

Addresses-Coverity-Bug: 1464571
Addresses-Coverity-Bug: 1464575
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/do_journal.c
debugfs/util.c