This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11120] strncmp() will be broken if used in ld.so on x86-64
- From: "ldv at altlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 22 Mar 2013 12:00:54 +0000
- Subject: [Bug libc/11120] strncmp() will be broken if used in ld.so on x86-64
- Auto-submitted: auto-generated
- References: <bug-11120-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11120
--- Comment #10 from Dmitry V. Levin <ldv at altlinux dot org> 2013-03-22 12:00:54 UTC ---
(In reply to comment #9)
> Can you comment on the fact that, prior to your latest change
> which now prevents calling it altogether,
> strncmp was returning inconsistent results?
> This is contrary to what I would expect from Mark Seaborn's original
> description "If strncmp() is ever used in ld.so on x86-64 it will
> silently be implemented as strcmp()".
There is no code in rtld that directly or indirectly calls strncmp.
The change I committed is fixed safeguards that in case rtld is changed to use
strncmp, x86-64 build would fail until strncmp is implemented for rtld.
It's certainly better to let rtld build fail rather than allow strncmp to be
implemented as strcmp.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.