* The bitmap size was computed incorrectly, and thus, StopChecking() could
access the block bitmap out of bounds (which usually resulted in a crash). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1236,7 +1236,7 @@ BlockAllocator::StopChecking(check_control* control)
|
||||
// fix any damages of the bitmap
|
||||
if (control != NULL && control->status == B_ENTRY_NOT_FOUND) {
|
||||
// calculate the number of used blocks in the check bitmap
|
||||
size_t size = fVolume->BlockSize() * fNumGroups * fBlocksPerGroup;
|
||||
size_t size = BitmapSize();
|
||||
off_t usedBlocks = 0LL;
|
||||
|
||||
// TODO: update the allocation groups used blocks info
|
||||
|
||||
Reference in New Issue
Block a user