Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Two issues found with -fsanitize=undefined
- X-seq: zsh-workers 36584
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Markus Trippelsdorf <markus@xxxxxxxxxxxxxxx>
- Subject: Re: Two issues found with -fsanitize=undefined
- Date: Mon, 21 Sep 2015 13:56:45 -0700
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- In-reply-to: <20150921203409.GB8913@x4>
- 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> <20150921200413.GA8913@x4> <20150921212113.74706d86@ntlworld.com> <20150921203409.GB8913@x4>
On Mon, Sep 21, 2015 at 1:34 PM, Markus Trippelsdorf
<markus@xxxxxxxxxxxxxxx> wrote:
>
>
> Well, only if DEBUG is defined. And as I wrote above the issue doesn't
> happen at all for -DDEBUG.
You mean that even without Peter's latest patch(es), the -fsanitize
checking does not report that a null pointer is being passed in the
case where -DDEBUG is defined?
That must mean (something along the lines of) defining DEBUG is
somehow changing the behavior of malloc(0) so it returns a pointer to
a zero-sized buffer rather than returning a null pointer.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author