mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
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
12 lines
343 B
Plaintext
Executable File
12 lines
343 B
Plaintext
Executable File
#######################################################################
|
|
# Crash when parsing an expression with lexical error
|
|
#######################################################################
|
|
pload QAcommands
|
|
|
|
set result [CR23403 \t]
|
|
set length [llength ${result}]
|
|
|
|
puts ""
|
|
if { ${length} != 0 } {
|
|
puts "Error : parsing is incorrect"
|
|
} |