From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20839 invoked by alias); 18 Dec 2014 19:39:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34007 Received: (qmail 8248 invoked from network); 18 Dec 2014 19:39:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.25.230] X-Spam: 0 X-Authority: v=2.1 cv=cpwVkjIi c=1 sm=1 tr=0 a=c0CwWhpM9oUd/BnC3z6Gzg==:117 a=c0CwWhpM9oUd/BnC3z6Gzg==:17 a=NLZqzBF-AAAA:8 a=A92cGCtB03wA:10 a=KhidbsuIUKrDdXLUcBkA:9 a=4KpWkE-0y3MA:10 a=X2JaOwqD-M0A:10 Message-Id: <201412181934.sBIJY1wl017598@pws-pc.ntlworld.com> X-Authentication-Warning: pws-pc.ntlworld.com: pws owned process doing -bs From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Complex config triggering Segfault in pattern matching code. In-Reply-To: Message from Peter Stephenson of "Thu, 18 Dec 2014 19:09:24 GMT." <20141218190924.0f08548b@pws-pc.ntlworld.com> Date: Thu, 18 Dec 2014 19:34:00 +0000 Peter Stephenson wrote: > Zeroing at the realloc should stop this. Watch carefully in case I've > got the sums wrong. Or the number of semicolons. There will be an embarrassing pause while the following is corrected. > + int newsize = len + N_SPECIAL_HIGHLIGHTS I think that's the only mistake, but goodness knows what was happening when I thought I was compiling it. pws