Skip to content
Tcl Source Code Artifact [28954d7917]
Login

Artifact [28954d7917]

Artifact 28954d79170d636230a0a06771b6ab01c3ba2b71:

Ticket change [28954d7917] - New ticket [a4a7f2abd376b280|a4a7f2abd3] <i>Tcl [string match] and [glob] are exponential complexity for bad patterns, could be linear</i>. by aku on 2017-04-24 19:04:42.
D 2017-04-24T19:04:42.414
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment See\s[https://research.swtch.com/glob]\r\nabout\sa\sdescription\sof\sthe\sgeneral\sproblem\r\n(backtracking\sin\smany\sglob-matching\simplementations)\r\nand\ssolution.\r\n\r\nTcl\s8.6.1\sis\sunfortunately\sin\sthe\sgroup\swith\sexponential\sbehaviour\s(in\scontrast\sto\sregexes,\swhere\sTcl\sis\spart\sof\sthe\snice\sgroup).\r\n\r\nRanking\sthis\sas\ssevere\s(as\sa\spossible\sDOS\sattack\svector),\sbut\snot\scritical\s(not\sa\scrash,\salthough\sthat\smay\sbe\spossible\sfor\sthe\slarger\spatterns).
J foundin 8.6.1
J is_private 0
J login aku
J priority 5\sMedium
J resolution None
J severity Severe
J status Open
J submitter aku
J subsystem 16.\sCommands\sA-H
J title Tcl\s[string\smatch]\sand\s[glob]\sare\sexponential\scomplexity\sfor\sbad\spatterns,\scould\sbe\slinear
J type Bug
K a4a7f2abd376b2806073d2865f07b7d910b04574
U aku
Z f62ff359343d6d0e0bec2280f319a9f0