"lsearch" crashes under certain circumstances:
Condition 1:
The list and the query object share the same Tcl_Obj.
Condition 2:
Options used for lsearch are "-exact" and "-integer" or "-real"
crash example1:
set x 0
set y $x
lsearch -exact -integer $x $y
crash example2:
set x 0.2
set y $x
lsearch -exact -real $x $y
does not crash (example1 without -exact):
set x 0
set y $x
lsearch -integer $x $y
I tested this with tcl8.5b3 (windows) and tcl8.5b1 (linux)
Donal K. Fellows
17. Commands I-L
obsolete: 8.5b3
Public
|
Date: 2007-12-05 13:45
|
|
Date: 2007-12-05 13:29
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-12-05 13:45 | dkf |
| close_date | - | 2007-12-05 13:45 | dkf |
| resolution_id | None | 2007-12-05 13:45 | dkf |
| category_id | 18. Commands M-Z | 2007-12-05 13:31 | dkf |
| category_id | 10. Objects | 2007-12-05 13:15 | dkf |
| assigned_to | msofer | 2007-12-05 13:15 | dkf |
| priority | 5 | 2007-12-05 13:15 | dkf |