|
2016-07-18
| ||
| 16:50 | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. Also ... check-in: 98f348e049 user: dgp tags: trunk | |
| 16:46 | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. check-in: fb17469c50 user: dgp tags: core-8-6-branch | |
| 16:27 | • Closed ticket [104f2885bb]: channel TAINT flag is wrong tool plus 7 other ch... artifact: 82b42630dc user: dgp | |
| 16:26 | [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. check-in: 05d912fea5 user: dgp tags: core-8-5-branch | |
|
2016-07-14
| ||
| 16:35 | • New ticket [104f2885bb] channel TAINT flag is wrong tool. artifact: a2d814ebea user: dgp | |
channel TAINT flag is wrong tool
Closed / Fixed104f2885bb302d7bf43819e6086f49c3cb59263eCreated 10 years agoUpdated 10 years ago
Descriptionplain2016-07-14 16:35:40
Here's a test I put together to demo that the
CHANNEL_TAINT flag is improperly cleared:
test io-74.1 {improper clear of CHANNEL_TAINT} -setup {
set fn [makeFile {} io-74.1]
set rfd [open $fn r]
testobj freeallvars
interp create slave
} -constraints testobj -body {
teststringobj set 1 [string range $rfd 0 end]
read [teststringobj get 1]
testobj duplicate 1 2
interp transfer {} $rfd slave
catch {read [teststringobj get 1]}
read [teststringobj get 2]
} -cleanup {
interp delete slave
testobj freeallvars
removeFile io-74.1
} -returnCodes error -match glob -result {can not find channel named "*"}
Now it is clear to me that the answer is not a matter
of getting treatment of the flag corrected. A flag is simply
the wrong tool.
To cache the resolution of a channel name in a particular
context, we need to use the same epoch scheme we use
for other things that are records of resolutions in a context
that may vary over time.
Referenced by3
98f348e049[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. Also merge backlog of test suite & doc improvements. check-in2016-07-18 16:50:22fb17469c50[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. check-in2016-07-18 16:46:3405d912fea5[104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached channel name lookups. check-in2016-07-18 16:26:44
dgpplain2016-07-18 16:27:19
Now pushing fix to all branches.
Log in (anonymous is fine) to add a comment.