intel / intel/hyperscan

Literals should be able to start with NULL character

Open
#388 3 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

According to documentation on `hs_compile_lit`, "the special terminating character \0 should be allowed to appear in expression, and not treated as a terminator for a string". Recent addition of `strcmp` check for empty expressions invalidates this statement, specifically meaning they can no longer start with a '\0'.

This is related to issue #386, though unlike that issue, where an additional NULL terminator can be added to expressions, there is no obvious workaround for this for any expression required to start with a NULL.

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.