Bruno Haible <br...@clisp.org> writes:

> Does memchr(ptr,c,0) for ptr != NULL now access ptr[0] or not?

The as-if rule allows everything as long as a strictly compliant program
cannot tell the difference.

> In both cases the memchr implementation is deviating from traditional
> behaviour and provoking crashes for programs that worked fine earlier.

s/worked fine earlier/invoked undefined behviour/

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Reply via email to