freebsd-dev/cddl
Domagoj Stolfa a877965fa3 dtrace: fix an out of bound read and a NULL pointer increment
In dt_cc.c when the provider is an empty string, accessing
strlen(pdp->dtpd_provider) - 1 will result in a pdp->dtpd_provider[-1]
access.

Similarly, in dt_ident.c, if p2 is a NULL pointer, doing a p2++ on it is
undefined behaviour.

Reviewed by:	markj
MFC after:	1 week
Sponsored by:	Google
Differential Revision:	https://reviews.freebsd.org/D30778
2021-06-17 13:52:32 -04:00
..
compat/opensolaris Delete obsolete Solaris compat files 2021-05-24 08:48:47 -06:00
contrib/opensolaris dtrace: fix an out of bound read and a NULL pointer increment 2021-06-17 13:52:32 -04:00
lib spl: Unbreak crossbuild after f20893853e 2021-06-15 01:23:04 +01:00
sbin zfs: merge openzfs/zfs@afa7b3484 (master) into main 2021-06-13 04:38:47 +02:00
share zfs: merge openzfs/zfs@75b4cbf62 (master) into main 2021-06-08 16:52:44 +02:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
usr.bin zfs: change zstream -> zstreamdump link into a symlink 2021-06-13 05:40:18 +02:00
usr.sbin build: remove LIBPTHREAD/LIBTHR build options 2021-01-22 12:33:27 -06:00
Makefile zfs: bump version and install new share files 2021-02-18 15:21:10 +01:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00