hyperscan icon indicating copy to clipboard operation
hyperscan copied to clipboard

Something about compile error

Open Librarvl opened this issue 5 years ago • 2 comments

Dear developer: Hello, I have a strange error. After I load json from a rule library, I had a error about compile failed.As follow, “ret -4, msg = Unterminated character class starting at index 2.” “ret” is the value the is returned, and msg is the reason of error. Specially, I think my load a right rule library, because the error will appear randomly in the same running code. For example, I will run the same program repeatedly for 10 times, and this error will occur for 3 times. The rest will work normally. So please tell me whether I did something wrong or tell me how to solve that

Librarvl avatar May 18 '20 01:05 Librarvl

@Librarvl , this looks like a semantic error existing in your rule. Can you find the rule that triggers this error?

xiangwang1 avatar May 18 '20 02:05 xiangwang1

I have carefully check my semantic of rule library. I don`t find any incorrect things. And if my rule library has error, the function, compile_hyperscan, should always fail to compile. Actually, sometimes it can compile successfully. So can you explain this problem? Thank you very much!

And the following is the content of my rule library:

https://www.cnblogs.com/Librarvl/p/12911246.html

Looking forward to your reply.

Librarvl avatar May 18 '20 08:05 Librarvl