[Bug 276809] SEGFAULTs using libjail

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Feb 2024 18:32:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276809

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org
           Assignee|bugs@FreeBSD.org            |jail@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
The problem is that your code is not calling jailparam_import() or
jailparam_get() (with some JID specified in the parameters).  In this case,
there is no value to export, i.e., jd_value == NULL and we trigger a null
pointer dereference.  But, the library should probably check for this case and
return an error instead of crashing.

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