sc/source/ui/docshell/impex.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0c7f683766c58062e3ea1e613ffd4d237ffcb856 Author: Caolán McNamara <[email protected]> AuthorDate: Tue Apr 12 12:26:54 2022 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Apr 12 14:56:32 2022 +0200 ofz#46352 assert on bad string offset Change-Id: I60123fd0460b8038f08582a0bcbf2307af321df1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132899 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx index 422b1b0884e9..e7982d2f877b 100644 --- a/sc/source/ui/docshell/impex.cxx +++ b/sc/source/ui/docshell/impex.cxx @@ -2332,7 +2332,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")
