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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Dec 12 22:31:13 PST 2015


Issue #2862 has been updated by 0xAX.

Status changed from New to Feedback

----------------------------------------
Submit #2862: [PATCH] boot0cfg: check result of malloc in read_mbr()
http://bugs.dragonflybsd.org/issues/2862#change-12783

* Author: 0xAX
* Status: Feedback
* 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.

---Files--------------------------------
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