poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51461] Infinite loop in IOUtils.readFully() when channel.read() returns 0 on specific files
Date Fri, 01 Jul 2011 12:06:08 GMT

--- Comment #3 from Gabriele Columbro <gabriele@apache.org> 2011-07-01 12:06:08 UTC
Created attachment 27241
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27241
1 character patch which makes the test case pass with "broken.xls"

The patch basically handles the case that 


returns 0 indefinitely.

It only adds a = to the < condition in the if.

Test case passes, but not sure why the issue generates (seems related to the
file size being multiple of 512 but I tried with a simple 512 header + 512
content xls file and it actually worked without the patch, so a bit puzzled :)

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message