Andreas Schwab wrote:
> > And in the context of memchr's return value:
> 
> The context is irrelevant.

You couldn't tell how many bytes memchr is searching through? I tell you:
n bytes. This is clear from ISO C 99 paragraph 7.21.5.1.(2).

glibc's memchr is accessing n+1 bytes in the special case of n = 0. That is
a bug that you cannot deny. Registered at
  https://bugzilla.redhat.com/show_bug.cgi?id=500136

Bruno


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to