openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1803943 - /openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx
Date Thu, 03 Aug 2017 02:24:37 GMT
Author: jim
Date: Thu Aug  3 02:24:37 2017
New Revision: 1803943

URL: http://svn.apache.org/viewvc?rev=1803943&view=rev
Log:
limit levels

Modified:
    openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx

Modified: openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx?rev=1803943&r1=1803942&r2=1803943&view=diff
==============================================================================
--- openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx (original)
+++ openoffice/branches/AOO414/main/filter/source/msfilter/svdfppt.cxx Thu Aug  3 02:24:37
2017
@@ -4383,6 +4383,11 @@ PPTStyleSheet::PPTStyleSheet( const DffR
 				sal_uInt16 nLevelAnz;
 				rIn >> nLevelAnz;
 
+				if (nLevelAnz > 5)
+				{
+					throw std::range_error("Bad input file, Too many stylesheet levels");
+				}
+
 				sal_uInt16 nLev = 0;
 				sal_Bool bFirst = sal_True;
 				bFoundTxMasterStyleAtom04 = sal_True;



Mime
View raw message