]> granicus.if.org Git - zfs/commit
Fix get_special_prop() build failure
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Jul 2019 21:14:12 +0000 (14:14 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 21:14:12 +0000 (14:14 -0700)
commit3b03ff22761da0f5fad9a781025facfc6e555522
tree5146456a348da099635049bf735e00f734087214
parentd45d7f08fa56f94fc9577a6578cb411071a42e8d
Fix get_special_prop() build failure

The cast of the size_t returned by strlcpy() to a uint64_t by the
VERIFY3U can result in a build failure when CONFIG_FORTIFY_SOURCE
is set.  This is due to the additional hardening.  Since the token
is expected to always fit in strval the VERIFY3U has been removed.
If somehow it doesn't, it will still be safely truncated.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #8999
Closes #9020
module/zfs/zcp_get.c