freebsd-dev/cmd
LOLi 4af6873af6 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
2018-02-26 09:55:18 -08:00
..
arc_summary Handle broken pipes in arc_summary 2017-12-19 13:19:24 -08:00
arcstat arcstat: flush stdout / outfile after each line 2017-10-26 12:18:49 -07:00
dbufstat Add dbuf hash and dbuf cache kstats 2018-01-29 10:24:52 -08:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Honor --with-mounthelperdir where applicable 2017-12-17 14:14:07 -08:00
raidz_test Support -fsanitize=address with --enable-asan 2018-01-10 10:49:27 -08:00
vdev_id vdev_id: new slot type ses 2017-12-20 09:42:07 -08:00
zdb Project Quota on ZFS 2018-02-13 14:54:54 -08:00
zed Add scrub after resilver zed script 2018-02-23 11:38:05 -08:00
zfs Fix segfault in zfs_do_bookmark() 2018-02-26 09:55:18 -08:00
zgenhostid Add zgenhostid utility script 2017-07-25 13:22:03 -04:00
zhack Project Quota on ZFS 2018-02-13 14:54:54 -08:00
zinject Add corruption failure option to zinject(8) 2017-08-14 15:17:15 -07:00
zpool Add SMART attributes for SSD and NVMe 2018-02-21 13:52:47 -08:00
zstreamdump Encryption Stability and On-Disk Format Fixes 2018-02-02 11:37:16 -08:00
ztest Set persistent ztest failure mode 2018-02-05 12:00:26 -08:00
zvol_id OpenZFS 6314 - buffer overflow in dsl_dataset_name 2016-06-28 13:47:03 -07:00
Makefile.am Retire legacy test infrastructure 2017-08-15 17:26:38 -07:00