zfs/module/nvpair
Richard Yao 47b994049f Silence clang static analyzer warnings about stored stack addresses
Clang's static analyzer complains that nvs_xdr() and nvs_native()
functions return pointers to stack memory. That is technically true, but
the pointers are stored in stack memory from the caller's stack frame,
are not read by the caller and are deallocated when the caller returns,
so this is harmless. We set the pointers to NULL to silence the
warnings.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14612
2023-03-14 15:25:01 -07:00
..
fnvpair.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
nvpair.c Silence clang static analyzer warnings about stored stack addresses 2023-03-14 15:25:01 -07:00
nvpair_alloc_fixed.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
nvpair_alloc_spl.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00