]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_changelist.c
Fix coverity defects: CID 147654, 147690
authorGeLiXin <ge.lixin@zte.com.cn>
Thu, 13 Oct 2016 21:02:07 +0000 (05:02 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Oct 2016 21:02:07 +0000 (14:02 -0700)
commit45cb520b9d1b8200992f879d1ed6f472e94c6c6b
treecb7694c3208d3a074360f1c0d1a4178b2a3e98a9
parent1f51b525ff67e2c5cc26d968287bd9a7579acebd
Fix coverity defects: CID 147654, 147690

coverity scan CID:147654,type: Copy into fixed size buffer
- string operation may write past the end of the fixed-size
  destination buffer

coverity scan CID:147690,type: Uninitialized scalar variable
- call zfs_prop_get first in case we use sourcetype and
  share_sourcetype without initialization

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5253
lib/libzfs/libzfs_changelist.c
lib/libzfs/libzfs_sendrecv.c