From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8206 invoked by alias); 21 Sep 2015 20:04:22 -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: 36581 Received: (qmail 9744 invoked from network); 21 Sep 2015 20:04:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=mail.ud10.udmedia.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=beta; bh=w9PnQPXp7hu7z1O1dl9ReOb00X s1/73afXQpnTM2haE=; b=eJ4wKL64iTUk+/+5QIh2ytYUNnl+WAuKBx2YhQfkXl KEqXJcfUvpLKar8aYfdtao3JYIc0wt9kvHDZ1fTElOSEGvCvLRnNmUWFSaRYeKeg uBdgBfcBaxZTE5h5mbavuevnWcQomjHq/aGymuLOn4VQOH2tqSuSlZbEfZrn11go E= Date: Mon, 21 Sep 2015 22:04:13 +0200 From: Markus Trippelsdorf To: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: Two issues found with -fsanitize=undefined Message-ID: <20150921200413.GA8913@x4> References: <20150917075759.GA24365@x4> <20150921201306.0017146b@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150921201306.0017146b@ntlworld.com> On 2015.09.21 at 20:13 +0100, Peter Stephenson wrote: > On Thu, 17 Sep 2015 09:57:59 +0200 > Markus Trippelsdorf wrote: > > 2) > > compmatch.c:341:6: runtime error: null pointer passed as argument 2, which is declared to never be null} > > Test ./Y02compmatch.ztst failed: output differs from expected as shown above for: > > This might be benign, if the final argument is also zero; this should > tell us. Yes: matchbuflen: (null) with no matchbuf: 0 It looks like the issue doesn't happen with a -DDEBUG build. I've changed the DPUTS line to: fprintf(stderr, "matchbuflen: %s with no matchbuf: %x", matchbuf, matchbuflen); -- Markus