Overview
| Artifact ID: | 6a1595814953b6924cef440045da5d70d337832f |
|---|---|
| Ticket: | 1028587fffffffffffffffffffffffffffffffff
[interp hide] leaves pre-existing imports exposed |
| User & Date: | msofer on 2004-09-16 21:36:30 |
Changes
- icomment:
Logged In: YES user_id=148712 To insure the safety of the interp you have to hide unsafe commands *before* running any potentially unsafe script. It is useless to close the barn door after the horses fled ;) % proc foo {} {puts foo} % namespace export foo % interp hide {} foo % namespace eval ns namespace import ::foo % ns::foo invalid command name "ns::foo" The bug (is it one?) is then that you cannot completely hide a command after it was exposed. Consider a different example, pushing the argument to the extreme % proc newProc [info args oldProc] [info body oldProc] % interp hide {} oldProc - login: "msofer"
- mimetype: "text/plain"
- title changed to: "[interp hide] leaves pre-existing imports exposed"
- username: "msofer"