https://bz.apache.org/bugzilla/show_bug.cgi?id=69905

            Bug ID: 69905
           Summary: XSSFCell StackOverflowError possible in
                    getCellFormula()
           Product: POI
           Version: 5.4.2-FINAL
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

This line:

https://github.com/apache/poi/blame/094968cfc3d48224db08f0b7f0a6fc341b035114/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java#L413

doesn't check first if the cell returned by the previous line is the current
cell.  We apparently have some workbooks in our dataset with empty array
formulas somewhere, which cause this to throw StackOverflowError.

It should check for this.equals(cell) first, and return null or
f.getStringValue() if true.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to