Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2015 18:24:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 205322] [PATCH] boot0cfg: check result of the malloc()
Message-ID:  <bug-205322-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205322

            Bug ID: 205322
           Summary: [PATCH] boot0cfg: check result of the malloc()
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: kuleshovmail@gmail.com
          Keywords: patch

Created attachment 164240
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164240&action=edit
check malloc result

Hello all,

We are trying to allocate buffer for MBR in the read_mbr() function by the call
of the malloc(). But it may return NULL in error case. This patch adds check
for
this case.

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



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