This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: segfault in test-strcmp
- From: Roland McGrath <roland at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jack Howarth <howarth at bromo dot med dot uc dot edu>,libc-alpha at sources dot redhat dot com
- Date: Fri, 8 Nov 2002 08:08:22 -0800
- Subject: Re: segfault in test-strcmp
> The test should probably just test defined behaviour, so
> should terminate all strings, or at least have an option whether it allows
> accesses past the place where string differs or where searched char was
> found (by default only testing with zero terminated strings).
> Will look into this.
Yes, I don't think we want to test the undefined behavior. We don't want
to make it part of GNU behavior that you can call strcmp on unterminated
strings even if they differ in the first character.