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;


Reply via email to