intel / intel/hyperscan

Hyperscan panics if bounded repeat is exactly 32767

Open
#425 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.5k
Forks
816
Avg merge
4d 21h
Merged PRs (30d)
2

Description

```
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.