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
cantab.net!aia21 2004-05-14 08:07:19 +00:00
parent 153114e5fd
commit 9ae1b7306a
1 changed files with 1 additions and 1 deletions

View File

@ -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);