mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Fixed null pointer dereference issue in treeblock
This commit is contained in:
parent
1ee768a40f
commit
8419d7d0cb
@ -159,6 +159,9 @@ grub_sfs_read_extent (struct grub_sfs_data *data, unsigned int block,
|
||||
return 0;
|
||||
|
||||
treeblock = grub_malloc (data->blocksize);
|
||||
if(!treeblock){
|
||||
return grub_error(GRUB_ERR_OUT_OF_MEMORY, "Failed to allocate memory for treeblock");
|
||||
}
|
||||
|
||||
next = grub_be_to_cpu32 (data->rblock.btree);
|
||||
tree = (struct grub_sfs_btree *) treeblock;
|
||||
|
Loading…
Reference in New Issue
Block a user