This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17499] wcslen() returns wrong result on x86_64


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]