Actions
Submit #2862
closed[PATCH] boot0cfg: check result of malloc in read_mbr()
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