]> granicus.if.org Git - zfs/commit
Fix segfault in zfs_do_bookmark()
authorLOLi <loli10K@users.noreply.github.com>
Mon, 26 Feb 2018 17:55:18 +0000 (18:55 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 26 Feb 2018 17:55:18 +0000 (09:55 -0800)
commit4af6873af6f8e9f6355e4962262c06d449664d26
tree076f1753a01388a22e9fb83aed1cce86149d043e
parent2a0428f16b93b7d5160c277dd678e65ad27d996f
Fix segfault in zfs_do_bookmark()

When invoked with wrong parameters 'zfs bookmark' fails to gracefully
validate user input and crashes.

This is a regression accidentally introduced in 587e228; this commit
adds additional tests to the ZFS Test Suite to exercise this codepath.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: KireinaHoro <i@jsteward.moe>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7228
Closes #7229
cmd/zfs/zfs_main.c
tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/zfs_bookmark_cliargs.ksh