poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1796466 - /poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java
Date Sun, 28 May 2017 01:17:16 GMT
Author: onealj
Date: Sun May 28 01:17:16 2017
New Revision: 1796466

URL: http://svn.apache.org/viewvc?rev=1796466&view=rev
Log:
bug 61059: fix NamePtg to read unsigned shorts instead of signed shorts, avoiding a AIOOBE
when a workbook contains more than 32k Names. Thanks to Travis Burtrum for the patch.

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java?rev=1796466&r1=1796465&r2=1796466&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java Sun May 28 01:17:16 2017
@@ -43,7 +43,7 @@ public final class NamePtg extends Opera
 
 	/** Creates new NamePtg */
 	public NamePtg(LittleEndianInput in)  {
-		field_1_label_index = in.readShort();
+		field_1_label_index = in.readUShort();
 		field_2_zero = in.readShort();
 	}
 



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


Mime
View raw message