Tk Source Code

Check-in [d5f1c2d5]
Login

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

Overview
Comment:Fix [3020550fff]: Do not crash or leave dangling entries when grid or place is used on a half-dead window
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: d5f1c2d5b7393ceee3c54d87ebca8d944f8a90f7bdf9d673ceb1c2635515e0d0
User & Date: jan.nijtmans 2026-10-09 15:39:51.651
References
2026-10-16
17:20 • Closed ticket [3020550f]: grid, pack, place on half-dead windows resurrects hash entry plus 10 other changes artifact: efba2244 user: nemethi
Context
2026-10-16
17:13
Fix [3020550fff]: Do not crash or leave dangling entries when grid or place is used on a half-dead window check-in: 758007f6 user: csaba tags: core-8-6-branch
16:53
Fix [3020550fff]: Do not crash or leave dangling entries when grid or place is used on a half-dead window check-in: 3b9d5c7a user: csaba tags: core-9-0-branch
2026-10-09
15:49
See: [ac7f771957]: panedwindow identify: report the sash only for its own pixels check-in: 23aa8b82 user: jan.nijtmans tags: trunk, main
15:39
Fix [3020550fff]: Do not crash or leave dangling entries when grid or place is used on a half-dead window check-in: d5f1c2d5 user: jan.nijtmans tags: trunk, main
15:18
Fix [22172f3732]: "raise" command fails on recent linux check-in: 34105120 user: jan.nijtmans tags: trunk, main
2026-09-24
09:39
Fix [3020550fff]: Do not crash or leave dangling entries when grid or place is used on a half-dead window.

"grid .x -in .f" in a <Destroy> binding of .f dereferenced a NULL container, and "place" on a half-dead window or with a half-dead -in container added a hash entry for a window about to be freed, which later led to a use-after-free. Now a half-dead window is ignored, and content put -in a half-dead container is left unmanaged and unmapped. closed check-in: 8c00370c user: serhiy.storchaka tags: halfdead-geometry-crash

Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to generic/tkGrid.c.
Changes to generic/tkPlace.c.
Changes to tests/grid.test.
Changes to tests/place.test.