Fix access of MFT_RECORD->bytes_in_use to use le32_to_cpu() instead
of le16_to_cpu() in libntfs/volume.c. (Pete Curran) (Logical change 1.391)edge.strict_endians
parent
153114e5fd
commit
9ae1b7306a
|
@ -792,7 +792,7 @@ ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long rwflag)
|
|||
vinf = (VOLUME_INFORMATION*)(le16_to_cpu(a->value_offset) + (char*)a);
|
||||
/* Sanity checks. */
|
||||
if ((char*)vinf + le32_to_cpu(a->value_length) > (char*)ctx->mrec +
|
||||
le16_to_cpu(ctx->mrec->bytes_in_use) ||
|
||||
le32_to_cpu(ctx->mrec->bytes_in_use) ||
|
||||
le16_to_cpu(a->value_offset) + le32_to_cpu(
|
||||
a->value_length) > le32_to_cpu(a->length)) {
|
||||
Dputs(FAILED);
|
||||
|
|
Loading…
Reference in New Issue