glibc 2.1.96 (sysdeps/i386/i486/bits/string.h has a bug)

Ulrich Drepper drepper@redhat.com
Thu Nov 2 16:30:00 GMT 2000


Denis Zaitsev <zzz@cd-club.ru> writes:

> The strcmp implementation has a problem. If either of arguments is of
> type (void*) then the __strcmp_xx macros will dereference this void
> pointer with all the consequences. And, say, bind-9 can't be
> compiled... So, here is the straightforward patch.

I've made a different change which you can find in 2.1.97.

> By the way, what were the reasons to make these 3 macros which all do
> the same? It seems that one inline function would look better...

No.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-alpha mailing list