Skip to content
Tcl Source Code History Of Ticket 67fcef9acaf76700
Login

History Of Ticket 67fcef9acaf76700

Artifacts Associated With Ticket 67fcef9acaf76700

  1. Ticket change [4a6b989318] (rid 144919) by yarda81 on 2016-02-16 09:56:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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.
      
    5. foundin initialized to: "tcl-8.6.4"
    6. is_private initialized to: "0"
    7. login: "yarda81"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "362c7c9ba8659317170601ba50e062e2d08c07e3"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "yarda81"
    14. subsystem initialized to: "43. Regexp"
    15. title initialized to: "Possible regex ranges integer overflow"
    16. type initialized to: "Bug"
  2. Ticket change [d036d7f803] (rid 257610) by serhiy.storchaka on 2026-10-11 11:04:57:

    1. 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.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [1f1e059f32] (rid 257611) by serhiy.storchaka on 2026-10-11 11:04:57:

    1. login: "serhiy.storchaka"
    2. resolution changed to: "Invalid"
    3. status changed to: "Closed"
  4. Ticket change [0e118f4297] (rid 259887) by serhiy.storchaka on 2026-10-22 17:19:24:

    1. closedate changed to: "2461324.961771528"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"