Mike, Alan,

I have updated the fix to use GetFileSizeEx() and SetFilePointerEx(). Also add a regression test that creates a large sparse file.

Webrev at:
  http://cr.openjdk.java.net/~mchung/6402006/webrev.01/

Thanks
Mandy

On 11/18/10 13:43, Mandy Chung wrote:
6402006 FileInputStream.available() returns negative values when reading a large file

Webrev at:
http://cr.openjdk.java.net/~mchung/6402006/webrev.00/

This fixes a bug in the windows implementation of io_util.c that ignores the high-order doubleword of the file size in computing the end of the file. Thus the available() method incorrectly returns only the low-order 32-bit for large files.

Thanks
Mandy

Reply via email to