This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: New comprehensive test for wcscmp
On Fri, Aug 12, 2011 at 02:10, Dmitrieva Liubov
<liubov.dmitrieva@gmail.com> wrote:
> Ok, but what function "wcscmp" shall do for incorrect aligned input pointer?
> Shall it be checked in new implementation and causes an error?
> Or new implementation can do everything for incorrect input, it will
> be undefined behaviour case.
You don't have to deliberately fail. The behavior is undefined.