Overview
| Artifact ID: | 49f590a9842563522ea26f989e30b343e28c3cac |
|---|---|
| Ticket: | 2433843fffffffffffffffffffffffffffffffff
return options can leak to next bytecode |
| User & Date: | dgp on 2008-12-16 16:41:41 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
% proc demo {} { return -level 0 -code ok -leaky option set x } % catch demo m o 1 % set o -leaky option -code 1 -level 0 -errorcode NONE -errorinfo {can't read "x": no such variable while executing "set x" (procedure "demo" line 3) invoked from within "demo"} -errorline 1 % info patch 8.5.5 Problem appears to be that all commands returning TCL_OK bypass any (emulation of) Tcl_ResetResult() on the theory that results are managed on the execution stack so long as bytecode is in control. This means resetting of the return options dict gets skipped. - foundin changed to: "obsolete: 8.5.5"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "47. Bytecode Compiler"
- title changed to: "return options can leak to next bytecode"
- type changed to: "Bug"