Tk Source Code

Check-in [6043b105]
Login

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

Overview
Comment:Fix for [1652598]: Free memory read by SetupStacks in tkOption.c.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 6043b105708831fc12e0862388c7387f8641bb80ee360d8a601e6be7e1bb694b
User & Date: csaba 2026-10-08 10:43:29.545
References
2026-10-08
11:20 • Closed ticket [1652598f]: Free memory read by SetupStacks in tkOption.c plus 8 other changes artifact: 04b8990e user: nemethi
Context
2026-10-08
11:38
Fix [6b050ba285]: line break inside a grapheme cluster at the end of the text. check-in: 928c0d52 user: nab tags: trunk, main
10:48
Fix for [1652598]: Free memory read by SetupStacks in tkOption.c. check-in: e047308b user: csaba tags: core-9-0-branch
10:43
Fix for [1652598]: Free memory read by SetupStacks in tkOption.c. check-in: 6043b105 user: csaba tags: trunk, main
07:59
[6838d62c] Document ttk::button -justify styling option, remove not existing command line options in comment. check-in: 0b67dd42 user: oehhar tags: trunk, main
2026-09-29
08:48
Fix [1652598]: Free memory read tkOption.c SetupStacks

ExtendStacks() can add elements to the option stack being scanned and reallocate it, so the loop kept reading the old array. Fetch the element anew on each iteration. closed check-in: 2d944be2 user: serhiy.storchaka tags: option-stack-realloc

Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to generic/tkOption.c.
Changes to tests/option.test.