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.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1796466 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-05-28 01:17:16 +00:00
parent 479b45ced9
commit b3c6907741
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public final class NamePtg extends OperandPtg implements WorkbookDependentFormul
/** Creates new NamePtg */
public NamePtg(LittleEndianInput in) {
field_1_label_index = in.readShort();
field_1_label_index = in.readUShort();
field_2_zero = in.readShort();
}