From: William A. Rowe Jr Date: Fri, 28 Sep 2001 17:15:12 +0000 (+0000) Subject: This broken bit causes a segfault after locking pconf as read-only. X-Git-Tag: 2.0.26~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54071db1776675754cc1a03d3012dee2bf684648;p=thirdparty%2Fapache%2Fhttpd.git This broken bit causes a segfault after locking pconf as read-only. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91181 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/srclib/pcre/pcreposix.c b/srclib/pcre/pcreposix.c index c6edb7dbece..e48d93e4c66 100644 --- a/srclib/pcre/pcreposix.c +++ b/srclib/pcre/pcreposix.c @@ -231,7 +231,12 @@ int *ovector = NULL; if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL; if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL; +#if 0 +/* This causes a memory segfault after locking the const, thread-shared *preg + * generated at compile time, and is entirely unnecessary. + */ preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ +#endif if (nmatch > 0) {