This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17499] wcslen() returns wrong result on x86_64
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 21 Oct 2014 15:37:22 +0000
- Subject: [Bug libc/17499] wcslen() returns wrong result on x86_64
- Auto-submitted: auto-generated
- References: <bug-17499-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17499
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Tue, 21 Oct 2014, digitalfreak at lingonborough dot com wrote:
> - the string is placed at the memory address which is not a multiple of 4.
Why do you think this is a valid use of wcslen? The x86_64 ABI says that
int (= wchar_t) has 4-byte alignment. (Indeed, there's a special m68k
version of wcpcpy to deal with m68k having lower alignment requirements
than generic code expects.)
--
You are receiving this mail because:
You are on the CC list for the bug.