sc/source/filter/excel/xilink.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 6aa836329d17bf0aca4aead6bb9c35a6783ec215 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Thu Mar 24 12:42:52 2016 +0100 don't sanitize value to an insane value, tdf#97863 Change-Id: I0e4de6b676fb61536dadefc96a719cf50be128ed diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx index 96e68a1..0ffbef6 100644 --- a/sc/source/filter/excel/xilink.cxx +++ b/sc/source/filter/excel/xilink.cxx @@ -282,7 +282,10 @@ XclImpExtName::MOper::MOper(svl::SharedStringPool& rPool, XclImpStream& rStrm) : { SAL_WARN("sc", "Parsing error: " << nMaxRows << " max possible rows, but " << nLastRow << " index claimed, truncating"); - nLastRow = nMaxRows-1; + if (nMaxRows > 0) + nLastRow = nMaxRows-1; + else + return; } mxCached->Resize(nLastCol+1, nLastRow+1); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits