What is C in practice? (Cerberus survey): Analysis of Responses

Dridi Boukelmoune dridi at varni.sh
Mon Jul 6 11:42:19 CEST 2015

On Mon, Jul 6, 2015 at 11:25 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <CABoVN9CgC0Ckap8UM1Z3GZAWprMRjG-chysRdBF9X+Ye_Z_NQQ at mail.gmail.com>, Dridi Boukelmoune writes:
>>So, miniobj.h is undefined behaviour, huh.
> Uhm no ?
> miniobj.h is always used on valid pointers and only cast to the
> type the pointer is supposed to be.
> Only if things have already gone horribly wrong would miniobj.h
> risk doing something undefined.

I was referring to question 13 (Null pointer representations)

One of the responses suggests that NULL does not imply (void*)0, which
miniobj.h assumes with memset.

More information about the varnish-dev mailing list