[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()
http://bugs.dragonflybsd.org/issues/2862
* 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.
---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