Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Two issues found with -fsanitize=undefined
- X-seq: zsh-workers 36581
- From: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Two issues found with -fsanitize=undefined
- Date: Mon, 21 Sep 2015 22:04:13 +0200
- Cc: zsh-workers@xxxxxxx
- 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=
- In-reply-to: <20150921201306.0017146b@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150917075759.GA24365@x4> <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 <markus@xxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author