From f52fe377ae6aaf25f96dbcf5fda561ae35b1e8ac Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 28 Mar 2014 21:54:30 +0000 Subject: [PATCH] Patch from bug #56328 from David North - the maximum row number in a formula depends on HSSF vs XSSF git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1582892 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/formula/FormulaParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ss/formula/FormulaParser.java b/src/java/org/apache/poi/ss/formula/FormulaParser.java index 3e2f07cc4..410a2b74f 100644 --- a/src/java/org/apache/poi/ss/formula/FormulaParser.java +++ b/src/java/org/apache/poi/ss/formula/FormulaParser.java @@ -701,7 +701,7 @@ public final class FormulaParser { } catch (NumberFormatException e) { return null; } - if (i<1 || i>65536) { + if (i<1 || i>_ssVersion.getMaxRows()) { return null; } } else {