Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 28954d79170d636230a0a06771b6ab01c3ba2b71
Ticket: a4a7f2abd376b2806073d2865f07b7d910b04574
Tcl [string match] and [glob] are exponential complexity for bad patterns, could be linear
User & Date: aku on 2017-04-24 19:04:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    See [https://research.swtch.com/glob]
    about a description of the general problem
    (backtracking in many glob-matching implementations)
    and solution.
    
    Tcl 8.6.1 is unfortunately in the group with exponential behaviour (in contrast to regexes, where Tcl is part of the nice group).
    
    Ranking this as severe (as a possible DOS attack vector), but not critical (not a crash, although that may be possible for the larger patterns).
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "aku"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Severe"
  11. status changed to: "Open"
  12. submitter changed to: "aku"
  13. subsystem changed to: "16. Commands A-H"
  14. title changed to:
    Tcl [string match] and [glob] are exponential complexity for bad patterns, could be linear
    
  15. type changed to: "Bug"