This is the mail archive of the libc-alpha@sourceware.cygnus.com 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]

utf-16 iconv requires aligned buffer



iconvdata/utf-16.c accesses the buffer through casts to (uint16_t *).
But the caller of iconv() is allowed to pass buffers at an odd address.
On CPUs with strict alignment checking, like SPARC, this will give
an alignment fault. utf-16.c should access the buffer byte after byte.

Bruno

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