Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-04-08
23:05 • Closed ticket [2570363fff]: Tcltest evaluates $env(TCLTEST_OPTIONS) plus 7 o... artifact: 1d1a81243f user: dgp
2009-02-10
21:05 • Ticket [2570363fff]: 4 changes artifact: 2c6d13fd01 user: dgp
19:09 • Ticket [2570363fff]: 4 changes artifact: 9e309596ce user: nijtmans
2009-02-06
22:51 • Ticket [2570363fff]: 1 change artifact: 6ea9b708bb user: dgp
06:33 • Ticket [2570363fff]: 4 changes artifact: 3080999cb3 user: sbron
06:33 • Add attachment tcltest.patch to ticket [2570363fff] artifact: 85aaa7fd74 user: sbron
2009-02-05
23:33 • New ticket [2570363fff] Tcltest evaluates $env(TCLTEST_OPTIONS). artifact: bc1f07b331 user: sbron

Tcltest evaluates $env(TCLTEST_OPTIONS)

Closed / Fixed2570363fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2009-02-05 23:33:22
Tcltest evals $::env(TCLTEST_OPTIONS) in function ConfigureFromEnvironment. Externally provided data should be treated more carefully.
sbronplain2009-02-06 06:33:23
File Added - 312239: tcltest.patch
dgp Ticket [2570363fff]: 1 change [History diff]2009-02-06 22:51:05
nijtmansplain2009-02-10 19:09:58
Agreed. However, wouldn't
    if {[catch {Configure {*}$::env(TCLTEST_OPTIONS)} msg]} {
be simpler, more efficient and more readable than
    if {[catch {eval [linsert $::env(TCLTEST_OPTIONS) 0 Configure]} msg]} {
?

Apart from that, there are serveral more suspicious eval's in
tcltest.tcl, that should be handled similar.
dgpplain2009-02-10 21:05:08
The {*} fix should go into tcltest 2.3.1

The more careful [eval] should go into tcltest 2.2.10
dgpplain2009-04-08 23:05:49
allow_comments - 1


Fixes committed.
Log in (anonymous is fine) to add a comment.

Attachments: