Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 16:31:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266113] kvm_close tries to munmap NULL memory
Message-ID:  <bug-266113-227-okYidtoGSM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-266113-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

Mark Johnston <markj@FreeBSD.org> changed:

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

--- Comment #2 from Mark Johnston <markj@FreeBSD.org> ---
This seems ok to me.  I would check sparse_map == NULL instead of checking
pt_sparse_size != 0.  The reason is that the assignment to pt_sparse_size might
be moved earlier by some future change, and then the code will be wrong again.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266113-227-okYidtoGSM>