From fe89615fd255331f8a27c8eb0c5a18319c4a806c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 29 Jan 2014 10:07:43 +0000 Subject: [PATCH] coverity#1000696 Out-of-bounds access Change-Id: I4e69c7f5e45882238c4cc27244f38b81c87780e2 --- filter/source/msfilter/svdfppt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 6bc4cd6edc40..18e380df0bc3 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5321,7 +5321,7 @@ PPTPortionObj::PPTPortionObj( const PPTCharPropSet& rCharPropSet, const PPTStyle PPTCharPropSet ( rCharPropSet ), mrStyleSheet ( rStyleSheet ), mnInstance ( nInstance ), - mnDepth ( nDepth ) + mnDepth ( ( nDepth > 4 ) ? 4 : nDepth ) { }