Fix bug #51100 - Fix IOUtils issue for NPOIFS reading from an InputStream where every block is full
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1095753 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f86929bd0c
commit
944109b369
@ -34,6 +34,7 @@
|
||||
|
||||
<changes>
|
||||
<release version="3.8-beta3" date="2011-??-??">
|
||||
<action dev="poi-developers" type="fix">51100 - Fix IOUtils issue for NPOIFS reading from an InputStream where every block is full</action>
|
||||
<action dev="poi-developers" type="fix">50956 - Correct XSSF cell style cloning between workbooks</action>
|
||||
<action dev="poi-developers" type="add">Add get/setForceFormulaRecalculation for XSSF, and promote the methods to the common usermodel Sheet</action>
|
||||
<action dev="poi-developers" type="fix">Tweak the logic for sizing the HSSFCells array on a HSSFRow to reduce memory over allocation in many use cases</action>
|
||||
|
@ -110,7 +110,7 @@ public final class IOUtils {
|
||||
return (total == 0) ? -1 : total;
|
||||
}
|
||||
total += got;
|
||||
if (total == b.capacity()) {
|
||||
if (total == b.capacity() || b.position() == b.capacity()) {
|
||||
return total;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user