X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/e967efd5e9745242298f8792cb7d47dca141bfbf..refs/heads/simpler-sections:/CyteKit/PerlCompatibleRegEx.hpp 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]; }