1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0023909: FPE in BSplSLib::RationalDerivative

Avoid use of array out of its bounds in BSplSLib::RationalDerivative().

In addition, Resource_Manager is fixed to allow saving with empty resource map (test bugs fclasses bug181_1).
This commit is contained in:
abv
2013-04-18 11:39:40 +04:00
committed by bugmaster
parent e87a5bc65e
commit 174178b9fa
2 changed files with 13 additions and 13 deletions

View File

@@ -294,7 +294,7 @@ Standard_Boolean Resource_Manager::Save() const
Resource_LexicalCompare Comp;
Standard_Integer NbKey = myUserMap.Extent();
TColStd_Array1OfAsciiString KeyArray(1,NbKey);
TColStd_Array1OfAsciiString KeyArray(1,NbKey+1); // 1 more item is added to allow saving empty resource
Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString Iter(myUserMap);
for ( Index = 1; Iter.More(); Iter.Next())