1 Title: Handle large regular expressions more gracefully
10 Livestatus queries with large regular expressions in their filters could
11 lead to a stack overflow and consequently to a termination of the micro
12 core. To handle this in a more robust way, we set a limit on the size and
13 complexity of a regular expression, and bump the stack sizes of the
14 Livestatus threads from 64kB to 256kB. The net result is that we can
15 correctly handle regular expression patters of up to roughly 2k characters,
16 the exact value depends on the regex features used. For larger expressions
17 we return a failure status in a clean way.