Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Endless loop in matrix search -nocase option

Closed / Invalid786674ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-08-11 14:06:17
The matrix search command has a bug in the detection 
of "-nocase" option.
Due to the lack of a line of code, this otpion let the 
interpreter enter into a endless loop in the serach code 
of the matrix.tcl, in struct package. See comments in 
the attached matrix.tcl file to catch the problem, 
proc ::struct::matrix::_search {name args} {
    set mode   exact
    set nocase 0
    while {1} {
......................
...................

In this way, typing <matrixid> search -nocase 
anyoption will hang hup the Tcl console.

Adding the marked line solve fixes the mentioned bug.

Regards
[email protected]
nobodyplain2003-08-11 21:06:17
File Added - 58385: matrix.tcl
dkfplain2003-09-12 23:20:27
Logged In: YES 
user_id=79902

Please report against the tcllib project
Log in (anonymous is fine) to add a comment.

Attachments: