Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d34a08c2bde61e1807b5cdaf1faa768b5243f272
Ticket: 1810038fffffffffffffffffffffffffffffffff
DoS via infinite loop in regex NFA optimization
User & Date: mmaslano on 2007-10-09 09:24:13
Changes

  1. assignee changed to: "pvgoran"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Occure in version: 8.0 and higher, I try it also in devel version 8.5b1 and the problem is still here.
    
    Reproducer:
    TCL version:
      regexp '($|^X)*' 'foo'
    
    The problem is in regular expressions code, which results in a non-terminating infinite loop during nondeterministic finite automata optimization. These loops remain even after the client disconnects and can be used to hog CPU and connections to the database until a full-fledged denial of service condition occurs.
    
    I try to attach patch soon, but at the moment I've no idea, where in code is the problem.
    
    
    
    
  4. foundin changed to: "obsolete: 8.5b1"
  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: "mmaslano"
  10. subsystem changed to: "43. Regexp"
  11. title changed to: "DoS via infinite loop in regex NFA optimization"
  12. type changed to: "Bug"