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:
parent
479b45ced9
commit
b3c6907741
@ -43,7 +43,7 @@ public final class NamePtg extends OperandPtg implements WorkbookDependentFormul
|
|||||||
|
|
||||||
/** Creates new NamePtg */
|
/** Creates new NamePtg */
|
||||||
public NamePtg(LittleEndianInput in) {
|
public NamePtg(LittleEndianInput in) {
|
||||||
field_1_label_index = in.readShort();
|
field_1_label_index = in.readUShort();
|
||||||
field_2_zero = in.readShort();
|
field_2_zero = in.readShort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user