From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4433 invoked by alias); 8 Dec 2014 16:37:42 -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: 33934 Received: (qmail 1366 invoked from network); 8 Dec 2014 16:37:32 -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-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=IOK10brD c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=ta6ynfwUtFg2G06kz3cA:9 a=CjuIK1q_8ugA:10 a=sWxA89_y2w4A:10 a=74WC2DTabVcA:10 a=67akTBwiiHIA:10 From: Bart Schaefer Message-id: <141208083727.ZM25377@torch.brasslantern.com> Date: Mon, 08 Dec 2014 08:37:27 -0800 In-reply-to: <9CCB71BC-6744-4FF8-BBBC-EE538DF02732@kba.biglobe.ne.jp> Comments: In reply to "Jun T." "Re: free() error on simple input scripts" (Dec 8, 9:51pm) References: <20141206042732.GA28745@ti.fritz.box> <141206150753.ZM2978@torch.brasslantern.com> <9CCB71BC-6744-4FF8-BBBC-EE538DF02732@kba.biglobe.ne.jp> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Jun T." , zsh-workers@zsh.org Subject: Re: free() error on simple input scripts MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 8, 9:51pm, Jun T. wrote: } } Breaking out of the for-loop leaves the pointer t at the first Meta } in file_name, and the value of newsz becomes too small. } } How about the following? Yes, that would be better. I didn't notice that t was being used to compute a length.