You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an interesting case. The regular expression is not long enough to reach the limit of 6000
characters (RE_MAX_AST_LEVELS), but it's long enough to exhaust the stack when AddressSanitizer is enabled. This is because AddressSanitizer consumes a lot of stack space, and therefore the number of nested calls the program can do safely is drastically reduced. The same input doesn't cause an stack overflow if AddressSanitizer is disabled as the program has more stack available.
There has been some back and forth for RE_MAX_AST_LEVELS in the past (see #674) but 5000 some to be the sweet spot.
Reproducer: yara-re-stack-overflow.txt (SHA1: 58002f9ad135c3840d2e7ad07a100ed9b911f016)
The text was updated successfully, but these errors were encountered: