intel / hyperscan

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

The issue concerning the presence of "NOT" in logical combinations. #415

Closed tyleslove closed 9 months ago

tyleslove commented 9 months ago

When using Hyperscan, it has been observed that the NOT matching in logical combinations does not achieve the expected results.

ex: 1: A 2: B 3: 1&!2 4: !1&2 input data: "AB"

The data hits rule 3, while rule 4 doesn't, but what I expected was that neither 3 nor 4 would be hit. This is clearly different from the result I anticipated.

tyleslove commented 9 months ago

The matching result of logical combination is offset based. So there's no problem.