BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
695 stars 264 forks source link

DBA, Log, search: Infinite loop #2328

Closed ChristianGruen closed 3 months ago

ChristianGruen commented 3 months ago

Regex queries like [^0- result in a request that results in an infinite loop.

ChristianGruen commented 3 months ago

Reproducible with plain XQuery:

for $p in ('[^0', '[^0-')
return try {
  matches('a', $p)
} catch * {}