freebsd-skq/lib/libjail
markj aa54f39068 libjail: Handle an error from reallocarray() when trimming the buffer.
There is no API guarantee that realloc() will not fail when the buffer
is shrinking.  Handle it by simply returning the untrimmed buffer.
While this is unlikely to ever happen in practice, it seems worth
handling just to silence static analyzer warnings.

PR:		243106
Submitted by:	Hans Christian Woithe <chwoithe@yahoo.com>
MFC after:	1 week
2020-01-07 21:44:27 +00:00
..
jail_getid.c jail_getid(3): add special-case immediate return for jid 0 2019-06-02 14:03:56 +00:00
jail.3 mdoc: fix manlint warnings by unbreaking mdoc syntax 2010-10-08 12:39:49 +00:00
jail.c libjail: Handle an error from reallocarray() when trimming the buffer. 2020-01-07 21:44:27 +00:00
jail.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
Makefile pkgbase: Put a lot of binaries and lib in FreeBSD-runtime 2019-09-05 14:13:08 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00