Commit 6fc73da0 authored by Eric Sandeen's avatar Eric Sandeen Committed by Nathan Scott

[XFS] Fix overflow in mapping test at offsets of 2^63-1 bytes

SGI Modid: xfs-linux:xfs-kern:172649a
parent 94003a2a
......@@ -217,7 +217,7 @@ xfs_offset_to_map(
if (full_offset < iomapp->iomap_offset)
return NULL;
if (iomapp->iomap_offset + iomapp->iomap_bsize > full_offset)
if (iomapp->iomap_offset + (iomapp->iomap_bsize -1) >= full_offset)
return iomapp;
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment