Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 8573
blob21f4e59c0633c6b14b313a1eac1515eb9b0593a5
1 Title: Handle large regular expressions more gracefully
2 Level: 1
3 Edition: cee
4 Component: cmc
5 Compatible: compat
6 Version: 1.4.0i2
7 Date: 1476432353
8 Class: fix
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.