sc/source/ui/docshell/impex.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3b91c4cdbca6ae02fa8c195ac8a6715ac8dcdf52 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Apr 12 12:26:54 2022 +0100 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Apr 13 11:25:00 2022 +0200 ofz#46352 assert on bad string offset Change-Id: I60123fd0460b8038f08582a0bcbf2307af321df1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132861 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 3e257bbcfbc7..5bd8052e0bec 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -2340,7 +2340,7 @@ bool ScImportExport::Sylk2Doc( SvStream& rStrm ) aFormats.push_back( nKey ); } } - else if( cTag == 'I' && *p == 'D' ) + else if (cTag == 'I' && *p == 'D' && aLine.getLength() > 4) { aLine = aLine.copy(4); if (aLine == "CALCOOO32")