intel / hyperscan

High-performance regular expression matching library
https://www.hyperscan.io
Other
4.8k stars 715 forks source link

Hyperscan panics if bounded repeat is exactly 32767 #425

Open dchenz opened 9 months ago

dchenz commented 9 months ago
python3: src/parser/ComponentRepeat.cpp:125: virtual void ue2::ComponentRepeat::notePositions(ue2::GlushkovBuildState&): Assertion `m_max == NoLimit || m_max < MAX_REPEAT' failed.
Aborted (core dumped)

Bad pattern: abc .{0,32767}

Mode: stream database Hyperscan version: 5.6.1 Python hyperscan version: 0.4.0 Python version: 3.9.17

It compiles ok with 32766 and gives a "Bounded repeat too large" compile error for 32768.