Crash in array names -regexp
Closed / Fixed624755ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-10-17 16:36:37
Tcl 8.4.1 (CVS) crashes with the following simple
script:
set constituents([list 1 2 {a {}}]) 0
set start 1; set end 2
set symbol {a {}}
puts "[array names constituents -regexp \
\"$start $end \{*[lindex $symbol 0].*\"]"
The expression has an error (unmatched curly
brace), but this is not a reason for crashing.
Reproduced on linux and Activestate's
distribution on windows.
andreas_kupries Ticket [624755ffff]: 2 changes
[History diff]2002-10-17 23:45:59
dgpplain2002-10-18 00:30:36
Logged In: YES user_id=80530 Stupid logic error in [array names]. if ((objc < 3) && (objc > 5)) ... syntax error... obviously should be || not &&
dgpplain2002-10-18 00:39:03
Logged In: YES user_id=80530 fix and test committed.
Log in (anonymous is fine) to add a comment.