NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/51670: curses: printw displays multibyte string wrong if ASAN is not used



On Nov 30, 12:00am, dholland-bugs%netbsd.org@localhost (David Holland) wrote:
-- Subject: Re: lib/51670: curses: printw displays multibyte string wrong if 

| The following reply was made to PR lib/51670; it has been noted by GNATS.
| 
| From: David Holland <dholland-bugs%netbsd.org@localhost>
| To: gnats-bugs%NetBSD.org@localhost
| Cc: 
| Subject: Re: lib/51670: curses: printw displays multibyte string wrong if
|  ASAN is not used
| Date: Tue, 29 Nov 2016 23:55:27 +0000
| 
|  On Tue, Nov 29, 2016 at 09:45:00AM +0000, carsten.kunze%arcor.de@localhost wrote:
|   >         char *mbs = "äöüß";
|  
|  I've received several copies of this through various paths and tools
|  (lists, gnats, etc.) and ~all of them have mangled this string
|  differently. (It would be funny, except it's not really.)
|  
|  What's it supposed to be in hex?

"\xef\xbf\xbd\xef\xbf\xbd"

The problem is sanitizer=address intercepts dlopen incorrectly.
I'll post a fix on tech-userlevel. Static libc reproduces the problem
with a different code path.

christos



Home | Main Index | Thread Index | Old Index