Artifacts Associated With Ticket 67fcef9acaf76700
Ticket change [4a6b989318] (rid 144919) by yarda81 on 2016-02-16 09:56:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Just opening the case in tcl upstream, to be aware of the problem: https://github.com/SWI-Prolog/packages-xpce/issues/2 The chr type is 16bit, hence the maximum range size is limited to 2^16, which is not sufficient to trigger the overflow. Note that TCL can be built with 32bit chr type depending on the value of TCL_UTF_MAX macro. The default value is 3, which implies the use of 16bit chr. Other valid value is 6, but that is considered experimental upstream and not recommended.
- foundin initialized to: "tcl-8.6.4"
- is_private initialized to: "0"
- login: "yarda81"
- priority initialized to: "5 Medium"
- private_contact initialized to: "362c7c9ba8659317170601ba50e062e2d08c07e3"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "yarda81"
- subsystem initialized to: "43. Regexp"
- title initialized to: "Possible regex ranges integer overflow"
- type initialized to: "Bug"
Ticket change [d036d7f803] (rid 257610) by serhiy.storchaka on 2026-10-11 11:04:57:
- icomment:
Not reproducible in 8.6, 9.0 or 9.1. Regexp escapes are capped at U+10FFFF (<code>lexdigits()</code> in regc_lex.c), CHR_MAX is 0x10FFFF in 9.x, and <code>range()</code> uses <code>int</code>, so neither the loop nor the allocation size can overflow. In 8.6, <code>chr</code> is 16-bit by default, and the escape cap also applies with <code>TCL_UTF_MAX > 4</code>. The full case-insensitive range <code><nowiki>[\U00000000-\U0010ffff]</nowiki></code> compiles in milliseconds.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [1f1e059f32] (rid 257611) by serhiy.storchaka on 2026-10-11 11:04:57:
- login: "serhiy.storchaka"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [0e118f4297] (rid 259887) by serhiy.storchaka on 2026-10-22 17:19:24:
- closedate changed to: "2461324.961771528"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"