utils.c: Fixed apparently incorrect initial value of 'bmpmref'.
This bug led 'utils_mftrec_in_use' to use 'cached' data before it had been initialized (i.e. its contents was undefined), producing incorrect results for the first 3584 MFT entries.edge.strict_endians
parent
debeb762c1
commit
5f7c535b55
|
@ -782,7 +782,7 @@ int utils_cluster_in_use(ntfs_volume *vol, long long lcn)
|
|||
int utils_mftrec_in_use(ntfs_volume *vol, MFT_REF mref)
|
||||
{
|
||||
static u8 buffer[512];
|
||||
static s64 bmpmref = -sizeof(buffer) - 1; /* Which bit of $BITMAP is in the buffer */
|
||||
static s64 bmpmref = -(sizeof(buffer) << 3) - 1; /* Which bit of $BITMAP is in the buffer */
|
||||
int byte, bit;
|
||||
|
||||
ntfs_log_trace("Entering.\n");
|
||||
|
|
Loading…
Reference in New Issue