1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0023403: Crash when parsing an expression with lexical error

Fix double freeing of memory in case when lexical error is detected by parser:
- revert previous fix, instead nullify the global buffer after its freeing in ExprIntrp_stop_string().

Added new QA command CR23403 and test case
This commit is contained in:
vsr
2012-09-07 14:19:09 +04:00
parent 0c5acd2705
commit 9fe1ada847
5 changed files with 69 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ void ExprIntrp_start_string(char* str)
void ExprIntrp_stop_string()
{
ExprIntrp_delete_buffer(ExprIntrp_bufstring);
ExprIntrp_bufstring = (YY_BUFFER_STATE) 0;
}
int yywrap()