Project

General

Profile

Actions

Submit #2862

closed

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

Added by Anonymous over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
Start date:
12/08/2015
Due date:
% Done:

0%

Estimated time:

Description

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

Actions #1

Updated by Anonymous over 8 years ago

  • Status changed from New to Feedback
Actions #2

Updated by swildner over 8 years ago

  • Status changed from Feedback to Closed

I've pushed it. Thanks.

Actions

Also available in: Atom PDF