interp transfer leaks information when transfering channels
Open1577730fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 47 days ago
Descriptionplain2006-10-15 18:07:44
The interp transfer command leaks some information, the channel name, which can be used to determine if a channel is connected to a file or socket for example, into a safe interpreter. As there is currently no easy way to rename a channel, building a token like it is done for filenames in the safe base is not as easy as it could be. This is more a suggestion for tcl 9, but interp transfer could return an interp specific alias token, so that a safe slave could not determine what kind of channel he gets from the opaque value.
Referenced by1
15e9fe54ddNew ticket [d6c1d2f78e] Socket channel names contain a heap address (visible to safe interps). ticket2026-10-17 10:51:11
serhiy.storchakawiki2026-10-17 10:53:34
The heap address in socket channel names (Unix since 8.6.0, Windows since 8.6.2) is now tracked separately in [d6c1d2f78e].
Log in (anonymous is fine) to add a comment.