HomeFreeBSD

Fix segfault in zfs_do_bookmark()

Description

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

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Feb 26 2018, 5:55 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 26 2018, 5:55 PM
Parents
rG2a0428f16b93: ZTS: Fix zfs_share_* test case failures
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4af6873af6f8: Fix segfault in zfs_do_bookmark() (authored by LOLi <loli10K@users.noreply.github.com>).Feb 26 2018, 5:55 PM