Chameleon

Chameleon Commit Details

Date:2010-03-21 13:22:00 (9 years 3 months ago)
Author:Tamás Kosárszky
Commit:136
Parents: 135
Message:Applied MacWen's "header read size 0" fix.
Changes:
M/trunk/i386/libsaio/hfs.c

File differences

trunk/i386/libsaio/hfs.c
887887
888888
889889
890
890
891
891892
892893
893894
readOffset = ((blockNumber - countedBlocks) * gBlockSize) +
(offset % gBlockSize);
readSize = GetExtentSize(currentExtent, 0) * gBlockSize - readOffset;
// MacWen: fix overflow in multiplication by forcing 64bit multiplication
readSize = (long long)GetExtentSize(currentExtent, 0) * gBlockSize - readOffset;
if (readSize > (size - sizeRead)) readSize = size - sizeRead;
readOffset += (long long)GetExtentStart(currentExtent, 0) * gBlockSize;

Archive Download the corresponding diff file

Revision: 136