From: Jay Freeman (saurik) Date: Fri, 10 Jun 2011 19:22:36 +0000 (-0700) Subject: Sanity check pcre_fullinfo (not that it helps clang). X-Git-Tag: v1.1.2~3 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/e85bcceb1f72ea2088bbb4ff799f21b5da0a0e78 Sanity check pcre_fullinfo (not that it helps clang). --- diff --git a/CyteKit/PerlCompatibleRegEx.hpp b/CyteKit/PerlCompatibleRegEx.hpp index 38a9462a..602f446c 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]; }