diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-06-10 12:22:36 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-06-10 12:22:36 -0700 |
commit | e85bcceb1f72ea2088bbb4ff799f21b5da0a0e78 (patch) | |
tree | a0924a1cbc2e40553164c8ab20e6b0bf90390e4b | |
parent | 543e172ac58fea0cdaa244dadfa9538c975cccc6 (diff) |
Sanity check pcre_fullinfo (not that it helps clang).
-rw-r--r-- | CyteKit/PerlCompatibleRegEx.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CyteKit/PerlCompatibleRegEx.hpp b/CyteKit/PerlCompatibleRegEx.hpp index 38a9462..602f446 100644 --- a/CyteKit/PerlCompatibleRegEx.hpp +++ b/CyteKit/PerlCompatibleRegEx.hpp @@ -85,6 +85,7 @@ class Pcre { } pcre_fullinfo(code_, study_, PCRE_INFO_CAPTURECOUNT, &capture_); + _assert(capture_ >= 0); matches_ = new int[(capture_ + 1) * 3]; } |