Tcl Source Code

Check-in [940c0e06e1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:create safe interpreter immediately as safe (using new TclCreateInterp internal)... also avoids info disclosure, e. g. access ENV using ::tcl::clock::getenv (TclClockInit() already checks by creating of ::tcl::clock-commands whether interpreter is safe, but TclClockInit() is invoked from Tcl_CreateInterp() before interpreter will be marked as safe); this also allows to optimize creation of safe interpreter later (e. g. by avoid of unneeded create/hide handling of unsafe commands)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | core-8-6-branch
Files: files | file ages | folders
SHA3-256: 940c0e06e124e0c0169c3cbedf0c7d4a91631e0a99675efd01ecd722e0d12997
User & Date: sebres 2026-10-01 20:48:44.333
References
2026-11-05
14:33 • New ticket [813699148d] Heap out-of-bounds read and NULL dereference in `clock` ... artifact: 8a1e1f5698 user: bef
Context
2026-10-01
21:12
adjusted test (result is better varname here) check-in: 3d297c7a57 user: sebres tags: core-8-6-branch
20:48
create safe interpreter immediately as safe (using new TclCreateInterp internal)... also avoids info... check-in: 940c0e06e1 user: sebres tags: core-8-6-branch
20:29
amend to the fix for bad locale: normalizes the code for [mclocale] too, as noticed by Jan (so we'll... check-in: 964e87e668 user: sebres tags: core-8-6-branch
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tclBasic.c.
Changes to generic/tclInt.h.
Changes to generic/tclInterp.c.
Changes to tests/clock.test.