Tcl Source Code

View Ticket
Login
Ticket UUID: 67fcef9acaf767003180ee05b8a35ef8ea6ae049
Title: Possible regex ranges integer overflow
Type: Bug Version: tcl-8.6.4
Submitter: yarda81 Created on: 2016-02-16 09:56:13
Subsystem: 43. Regexp Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2016-02-16 09:56:13
Resolution: None Closed By: nobody
    Closed on:
Description:
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.