[DragonFlyBSD - Submit #2862] (New) [PATCH] boot0cfg: check result of malloc in read_mbr()

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Dec 8 10:44:28 PST 2015

Issue #2862 has been reported by 0xAX.

Submit #2862: [PATCH] boot0cfg: check result of malloc in read_mbr()

* Author: 0xAX
* Status: New
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 4.2.x
Hello All,

We allocating buffer for MBR in the read_mbr() function. The malloc()
may return NULL, so this patch checks the result of the malloc and
exit with the error if we can't allocate memory.

Besides this we close file descriptor.

0001-boot0cfg-check-result-of-malloc-in-read_mbr.patch (1.17 KB)

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Submit mailing list