From e85bcceb1f72ea2088bbb4ff799f21b5da0a0e78 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 10 Jun 2011 12:22:36 -0700 Subject: [PATCH 1/1] Sanity check pcre_fullinfo (not that it helps clang). --- CyteKit/PerlCompatibleRegEx.hpp | 1 + 1 file changed, 1 insertion(+) 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]; } -- 2.45.2