[Bug 243106] jail(3): memory leak when resizing jail parameter list.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 7 21:44:47 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243106

--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:

Author: markj
Date: Tue Jan  7 21:44:27 UTC 2020
New revision: 356476
URL: https://svnweb.freebsd.org/changeset/base/356476

Log:
  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 at yahoo.com>
  MFC after:    1 week

Changes:
  head/lib/libjail/jail.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-jail mailing list