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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Dec 24 09:49:00 PST 2015

Issue #2862 has been updated by swildner.

Status changed from Feedback to Closed

I've pushed it. Thanks.

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

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