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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user