Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5390095040f334b9ae315609ab2dd9e0f7e28854
Ticket: 3610026fffffffffffffffffffffffffffffffff
A regular expression with > 32k "colors" causes a segfault
User & Date: hlinnaka on 2013-04-04 16:50:39
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If a regular expression is parsed into more than 32k colors, you get a crash. I initially spotted this in PostgreSQL (http://www.postgresql.org/message-id/[email protected]), but TCL shares the same code and thus has the same bug. 
    
    Attached is a TCL test script to reproduce this.
    
    Here's a link to the PostgreSQL commit that fixed this: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=bf2b0a147857f63daa2e5c17eed0169861371af8. It should apply to TCL sources with minimal changes.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "hlinnaka"
  10. subsystem changed to: "43. Regexp"
  11. title changed to:
    A regular expression with > 32k "colors" causes a segfault
    
  12. type changed to: "Bug"