[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sc/source
Eike Rathke
erack at redhat.com
Fri Jan 6 18:06:37 UTC 2017
sc/source/core/data/formulacell.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 74c3abeb970015f72a081cbfea59007fd0cbb011
Author: Eike Rathke <erack at redhat.com>
Date: Fri Jan 6 16:55:32 2017 +0100
out of bounds string access
Change-Id: Iecbe24f90cefe34a447cd52a44967a4b09b4394b
(cherry picked from commit 00f17500520bcb2634146496adc8de9f4d28eea5)
Reviewed-on: https://gerrit.libreoffice.org/32787
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 465f0b8..a3f14b4 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1355,7 +1355,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr
{
if ( !pCode->GetLen() )
{
- if ( aFormula[0] == '=' )
+ if ( !aFormula.isEmpty() && aFormula[0] == '=' )
pCode->AddBad( aFormula.copy( 1 ) );
else
pCode->AddBad( aFormula );
More information about the Libreoffice-commits
mailing list