zfs/lib
Richard Yao 4c59fde1f5 Fix theoretical use of uninitialized values
Clang's static analyzer complains about this.

In get_configs(), if we have an invalid configuration that has no top
level vdevs, we can read a couple of uninitialized variables. Aborting
upon seeing this would break the userland tools for healthy pools, so we
instead initialize the two variables to 0 to allow the userland tools to
continue functioning for the pools with valid configurations.

In zfs_do_wait(), if no wait activities are enabled, we read an
uninitialized error variable.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14043
2022-12-01 12:39:42 -08:00
..
libavl Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libefi Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libicp Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libnvpair Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libshare Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libspl Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libtpool Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libunicode Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libuutil Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzfs Call va_end() before return in zpool_standard_error_fmt() 2022-12-01 12:39:41 -08:00
libzfs_core Fix potential NULL pointer dereference in lzc_ioctl() 2022-12-01 12:39:41 -08:00
libzfsbootenv Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzpool set_global_var() should not pass NULL pointers to dlclose() 2022-12-01 12:39:42 -08:00
libzstd Ask libtool to stop hiding some errors 2022-09-21 16:12:14 -07:00
libzutil Fix theoretical use of uninitialized values 2022-12-01 12:39:42 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00