summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-03 11:48:14 +0100
committerDavid Tardon <dtardon@redhat.com>2015-10-05 07:54:04 +0000
commitce321f45840fb7e34e823af511221faafc6ef200 (patch)
tree8a8fa9aa014a3dba3c343ee39027e7714cc140ec
parenta016ffbf03480549cea53937a90c00bcaf254ee7 (diff)
xls: Defrowheight345 without pColRowBuff
Change-Id: I22be90d7c54b1118f81337bd9e1d97ba3a1fd86e (cherry picked from commit 4eb26f9cae2aacc8d672884283460e86e5c331ca) Reviewed-on: https://gerrit.libreoffice.org/19109 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
-rw-r--r--sc/qa/unit/data/xls/pass/crash-3.xlsbin0 -> 4075 bytes
-rw-r--r--sc/source/filter/excel/impop.cxx7
2 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xls/pass/crash-3.xls b/sc/qa/unit/data/xls/pass/crash-3.xls
new file mode 100644
index 000000000000..99e485aeecc4
--- /dev/null
+++ b/sc/qa/unit/data/xls/pass/crash-3.xls
Binary files differ
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index c48244d04aa5..0c5614faa613 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -1053,6 +1053,13 @@ void ImportExcel::Defrowheight345()
sal_uInt16 nFlags, nDefHeight;
nFlags = maStrm.ReaduInt16();
nDefHeight = maStrm.ReaduInt16();
+
+ if (!pColRowBuff)
+ {
+ SAL_WARN("sc", "*ImportExcel::Defrowheight345(): pColRowBuff is NULL!");
+ return;
+ }
+
pColRowBuff->SetDefHeight( nDefHeight, nFlags );
}