freebsd kernel with SKQ
Go to file
Stephen J. Kiernan 3fab177f90 Fix memory leak in edithost
The problem is that when the parameter 'pat' is null, the function locally
allocates a NULL string but never frees it.

Instead of tracking the local alloc, it is noted that the while(*pat) never
enters when there is a local alloc.
So instead of doing the local alloc, check that 'pat' is null before the
while(*pat) loop.

Found using clang's static analyzer - scan-build

Submitted by:	Thomas Rix <trix@juniper.net>
Reviewed by:	markm
Approved by:	sjg (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D9689
2017-06-01 19:21:30 +00:00
bin Fix integer overflow detection in dd 2017-05-31 16:07:32 +00:00
cddl MFV r316922: 5380 receive of a send -p stream doesn't need to try renaming snapshots 2017-05-24 22:30:21 +00:00
contrib Fix memory leak in edithost 2017-06-01 19:21:30 +00:00
crypto Merge OpenSSL 1.0.2l. 2017-05-25 20:52:16 +00:00
etc Tighten /entropy permissions. 2017-05-27 06:24:06 +00:00
gnu Add 11.1 to the mdoc(7) mdoc.local.in. 2017-05-22 14:21:07 +00:00
include Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE. 2017-05-24 09:25:13 +00:00
kerberos5 Disconnect heimdal version of qsort.c from build because we are already 2017-05-26 06:09:11 +00:00
lib When sysctlbyname fails, free buf before returning. 2017-06-01 16:44:39 +00:00
libexec Document direct execution mode for rtld. 2017-05-29 13:38:26 +00:00
release Turn on support for the Amazon "Elastic Network Adapter" in EC2 AMIs. 2017-05-25 19:02:54 +00:00
rescue DIRDEPS_BUILD: Update dependencies. 2017-05-09 01:48:23 +00:00
sbin ipfw.8: Note that the ipfw_nat kernel module must be loaded or that the 2017-06-01 09:14:49 +00:00
secure Merge OpenSSL 1.0.2l. 2017-05-25 20:52:16 +00:00
share Welcome back bapt@ to portmgr 2017-06-01 02:31:14 +00:00
sys As old prophecy says, some day UMA_DEBUG printfs shall be made CTRs. 2017-06-01 18:36:52 +00:00
targets Enable llvm-objdump by default per r310775 2017-05-16 03:12:51 +00:00
tests Import ACPICA 20170531. 2017-05-31 22:40:24 +00:00
tools Use .Xr to reference libblacklist(3), blacklistctl(8), and blacklistd(8) 2017-05-30 18:03:34 +00:00
usr.bin Use proper capitalization with .Dd. 2017-06-01 15:03:43 +00:00
usr.sbin * limit size of buffers to RPC_MAXDATASIZE 2017-06-01 06:12:25 +00:00
.arcconfig callsign isn't required anymore 2016-09-29 06:19:45 +00:00
.arclint
COPYRIGHT Bump copyright year. 2016-12-31 12:41:42 +00:00
LOCKS
MAINTAINERS Due to time constraints remove myself as a vmm(4) maintainer. 2017-04-15 22:42:23 +00:00
Makefile Import OpenSSL 1.0.2l. 2017-05-25 19:38:38 +00:00
Makefile.inc1 add a rescue/sh sanity check before installworld on the running system 2017-05-30 15:51:48 +00:00
Makefile.libcompat Support skipping 'make obj' tree-walk. 2017-05-09 20:21:38 +00:00
ObsoleteFiles.inc Also add libzfs and libmilter to the 64-bit inode library bump list. 2017-05-29 20:27:31 +00:00
README Import OpenSSL 1.0.2l. 2017-05-25 19:38:38 +00:00
README.md Remove hard line breaks from README.md 2017-03-01 15:39:58 +00:00
UPDATING Replace stale handbook URL with the proper on. 2017-05-25 09:21:21 +00:00

FreeBSD Source:

This is the top level of the FreeBSD source directory. This file was last revised on: FreeBSD

For copyright information, please see the file COPYRIGHT in this directory (additional copyright information also exists for some sources in this tree - please see the specific source directories for more information).

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7) and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html for more information, including setting make(1) variables.

The buildkernel and installkernel targets build and install the kernel and the modules (see below). Please see the top of the Makefile in this directory for more information on the standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process. See build(7), config(8), and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html for more information.

Note: If you want to build and install the kernel with the buildkernel and installkernel targets, you might need to build world before. More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf sub-directory. GENERIC is the default configuration used in release builds. NOTES contains entries and documentation for all possible devices, not just those commonly used.

Source Roadmap:

bin				System/user commands.

cddl			Various commands and libraries under the Common Development  
				and Distribution License.

contrib			Packages contributed by 3rd parties.

crypto			Cryptography stuff (see crypto/README).

etc				Template files for /etc.

gnu				Various commands and libraries under the GNU Public License.  
				Please see gnu/COPYING* for more information.

include			System include files.

kerberos5		Kerberos5 (Heimdal) package.

lib				System libraries.

libexec			System daemons.

release			Release building Makefile & associated tools.

rescue			Build system for statically linked /rescue utilities.

sbin			System commands.

secure			Cryptographic libraries and commands.

share			Shared resources.

sys				Kernel sources.

tests			Regression tests which can be run by Kyua.  See tests/README
				for additional information.

tools			Utilities for regression testing and miscellaneous tasks.

usr.bin			User commands.

usr.sbin		System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html