OpenZFS on Linux and FreeBSD
Go to file
Tobin Harding ced28193b0 Fix coverity defects: 147480, 147584
CID 147480: Logically dead code (DEADCODE)

Remove non-null check and subsequent function call. Add ASSERT to future
proof the code.

usage label is only jumped to before `zhp` is initialized.

CID 147584: Out-of-bounds access (OVERRUN)

Subtract length of current string from buffer length for `size` argument
to `snprintf`.

Starting address for the write is the start of the buffer + the current
string length. We need to subtract this string length else risk a buffer
overflow.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Closes #6745
2017-10-16 15:32:48 -07:00
.github Update codecov.yml 2017-09-22 18:54:34 -07:00
cmd Fix coverity defects: 147480, 147584 2017-10-16 15:32:48 -07:00
config Add DKMS package on Debian-based distributions 2017-10-15 13:00:44 -07:00
contrib Post-Encryption Followup 2017-10-13 10:02:39 -07:00
etc vdev_id: extension for new scsi topology 2017-09-27 10:39:47 -07:00
include Post-Encryption Followup 2017-10-13 10:02:39 -07:00
lib Fix function documentation to correctly mirror code 2017-10-13 12:42:04 -07:00
man Encryption patch follow-up 2017-10-11 16:54:48 -04:00
module Post-Encryption Followup 2017-10-13 10:02:39 -07:00
rpm Add DKMS package on Debian-based distributions 2017-10-15 13:00:44 -07:00
scripts Increase default zloop.sh vdev size 2017-10-13 12:39:39 -07:00
tests Encryption patch follow-up 2017-10-11 16:54:48 -04:00
udev Fix spelling 2017-01-03 11:31:18 -06:00
.gitignore Add configure option to enable gcov analysis 2017-09-15 10:24:13 -07:00
.gitmodules Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
AUTHORS Add a missing > to AUTHORS 2014-09-02 14:18:53 -07:00
COPYRIGHT Encryption patch follow-up 2017-10-11 16:54:48 -04:00
DISCLAIMER Fix minor typos and update marketing copy. 2013-03-21 12:51:06 -07:00
META Tag zfs-0.7.0 2017-07-26 10:13:25 -07:00
Makefile.am Add DKMS package on Debian-based distributions 2017-10-15 13:00:44 -07:00
OPENSOLARIS.LICENSE Add CDDL license file 2008-12-01 14:49:34 -08:00
README.markdown Update codecov.yml 2017-09-22 18:54:34 -07:00
TEST Run ztest for longer on "Coverage" builders 2017-09-26 12:29:32 -07:00
autogen.sh build: do not call boilerplate ourself 2013-04-02 10:55:20 -07:00
configure.ac Encryption patch follow-up 2017-10-11 16:54:48 -04:00
copy-builtin Allow c99 when building ZFS in the kernel tree 2017-03-27 12:31:15 -07:00
zfs.release.in Move zfs.release generation to configure step 2012-07-12 12:22:51 -07:00

README.markdown

img

ZFS on Linux is an advanced file system and volume manager which was originally developed for Solaris and is now maintained by the OpenZFS community.

codecov

Official Resources

Installation

Full documentation for installing ZoL on your favorite Linux distribution can be found at our site.

Contribute & Develop

We have a separate document with contribution guidelines.