diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-11-05 18:05:29 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-11-05 18:05:29 +0000 |
commit | 946ecf2a3210621f86d8baf69440397bb5e4394b (patch) | |
tree | 4e7c74576e0009bc264e684cbbb404dffed1aecd /README | |
parent | 0e5112832b6f2c6b0f98a90bf2ef9531cd2e87a2 (diff) | |
download | pcre-946ecf2a3210621f86d8baf69440397bb5e4394b.tar.gz |
Implement compile-time nested parentheses limit, specified at build time.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1389 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'README')
-rw-r--r-- | README | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -268,10 +268,18 @@ library. They are also documented in the pcrebuild man page. --with-posix-malloc-threshold=20 on the "configure" command. - -. PCRE has a counter that can be set to limit the amount of resources it uses. - If the limit is exceeded during a match, the match fails. The default is ten - million. You can change the default by setting, for example, + +. PCRE has a counter that limits the depth of nesting of parentheses in a + pattern. This limits the amount of system stack that a pattern uses when it + is compiled. The default is 250, but you can change it by setting, for + example, + + --with-parens-nest-limit=500 + +. PCRE has a counter that can be set to limit the amount of resources it uses + when matching a pattern. If the limit is exceeded during a match, the match + fails. The default is ten million. You can change the default by setting, for + example, --with-match-limit=500000 @@ -979,4 +987,4 @@ pcre_xxx, one with the name pcre16_xx, and a third with the name pcre32_xxx. Philip Hazel Email local part: ph10 Email domain: cam.ac.uk -Last updated: 02 July 2013 +Last updated: 05 November 2013 |