Skip to content
Tcl Source Code Check-in [c9dd03125b]
Login

Check-in [c9dd03125b]

Overview
Comment:Use the real stack limit of the current thread (new TclpGetCStackLimit(): pthread_getattr_np, pthread_attr_get_np, pthread_get_stackaddr_np, pthread_stackseg_np, thr_stksegment, VirtualQuery) in the regexp stack check, capped at REG_MAX_STACK_DEPTH, so that threads with small stacks are protected too. Compute it only when first needed. New test stack-4.1 runs deep REs with a 256 KB stack.
Timelines: family | ancestors | descendants | both | regexp-stack-depth
Files: files | file ages | folders
SHA3-256: c9dd03125b16d464740e57387bc458c128ef40e1d0e30e7efe1483521d3589e4
User & Date: serhiy.storchaka on 2026-10-11 10:04:21.156
Other Links: branch diff | manifest | tags
Context
2026-10-16
12:15
Fix [7d47ba7d94]: the regexp engine could overflow the C stack on deeply nested REs. Rebase to trunk closed check-in: 3de02ad5e8 user: jan.nijtmans tags: regexp-stack-depth
2026-10-11
10:04
Use the real stack limit of the current thread (new TclpGetCStackLimit(): pthread_getattr_np, pthrea... check-in: c9dd03125b user: serhiy.storchaka tags: regexp-stack-depth
2026-10-10
20:46
Fix [7d47ba7d94]: the regexp engine could overflow the C stack on deeply nested REs. Implement STACK... check-in: ef6503421f user: serhiy.storchaka tags: regexp-stack-depth
Changes