wipe_index_allocation_timestamps(): don't try to dump empty ia

edge.strict_endians
szaka 2006-08-13 15:15:08 +00:00
parent 5c0ce5407e
commit 39b9061d8b
1 changed files with 4 additions and 0 deletions

View File

@ -767,6 +767,10 @@ static void wipe_index_allocation_timestamps(ntfs_inode *ni, ATTR_RECORD *attr)
perr_printf("Failed to open $INDEX_ALLOCATION attribute");
goto out_bitmap;
}
if (!na->data_size)
goto out_na;
tmp_indexa = indexa = ntfs_malloc(na->data_size);
if (!tmp_indexa)
goto out_na;