mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Avoid SIGSEGV in case of incorrectly recorded command dump processing
This commit is contained in:
parent
a41868ac87
commit
175b357b21
@ -1415,6 +1415,8 @@ void ReplaceVariables(TCollection_AsciiString& theCommand,
|
||||
aStartPos = aCommand.Location(i-1, COMMA, 1, aCommand.Length()) + 2;
|
||||
aEndPos = aCommand.Location(i, COMMA, 1, aCommand.Length());
|
||||
}
|
||||
if (aStartPos == 0 || aEndPos == 0)
|
||||
continue;
|
||||
|
||||
if( aCommand.Value( aStartPos ) == O_SQR_BRACKET )
|
||||
aStartPos++;
|
||||
|
Loading…
Reference in New Issue
Block a user