Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Two issues found with -fsanitize=undefined



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