]> git.proxmox.com Git - mirror_zfs.git/commit
zpool_load_compat() should create strings of length ZFS_MAXPROPLEN
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Mon, 12 Sep 2022 19:54:43 +0000 (15:54 -0400)
committerTony Hutter <hutter2@llnl.gov>
Thu, 1 Dec 2022 20:39:40 +0000 (12:39 -0800)
commit792825724b69a32b55199acc4c6a2980b656c232
treed70b5a0ab775f75a8b1a4c401531b2f7eed5f76a
parentab22031d79691a25d5be20244ad72e34c05d9973
zpool_load_compat() should create strings of length ZFS_MAXPROPLEN

Otherwise, `strlcat()` can overflow them.

Coverity found this.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13866
lib/libzfs/libzfs_pool.c