::tcl::tm::UnknownHandler allows stale module data to persist in safe interp
Closed / Fixed56ebd82953a58ca72c37bde1f86048da52f2b8abCreated 6 years agoUpdated 42 days ago
Descriptionplain2020-07-15 12:30:30
When ::tcl::tm::UnknownHandler searches for a module, it keeps the information it obtains about other modules, unless it already has information for the same module name and version. It states:
# There's already a provide script registered for
# this version of this package. Since all units of
# code claiming to be the same version of the same
# package ought to be identical, just stick with
# the one we already have.
However, this does not apply to Safe Base interpreters because the token-to-directory mapping may have changed.
Fixed in branch safe-bugfixes-8-6 commit [8927bbee05]. New test safe-9.23 checks that the module path is updated.
kjnash Ticket [56ebd82953]: 3 changes
[History diff]2020-07-16 01:15:41
kjnash Ticket [56ebd82953]: 3 changes
[History diff]2020-07-16 02:03:53
serhiy.storchakawiki2026-10-21 10:03:38
Fixed in 8.6.11 by [8927bbee05], merged with [a638b9a73b], and present in 9.0; test safe-9.23 covers it.
serhiy.storchaka Ticket [56ebd82953]: 3 changes
[History diff]2026-10-22 17:19:31
Log in (anonymous is fine) to add a comment.