Date: Sun, 29 Jan 2017 12:52:56 +0800 From: He X <xw897002528@...il.com> To: musl@...ts.openwall.com Subject: Re: a bug in bindtextdomain() and strip '.UTF-8' found two more bugs related to intl: 1. no memset after malloc, caused chromium crash: http://www.openwall.com/lists/musl/2017/01/28/1 --- musl-1.1.16/src/locale/dcngettext.c 2017-01-29 04:42:49.002221317 +0000 +++ musl-1.1.16/src/locale/dcngettext.c 2017-01-29 04:42:49.002221317 +0000 @@ -180,6 +180,7 @@ __munmap((void *)map, map_size); goto notrans; } + memset(p, 0, sizeof *p + namelen + 1); p->map = map; p->map_size = map_size; memcpy(p->name, name, namelen+1); 2. musl uses generic config of libstdc++, which blocked the support of locale, patch is there: https://github.com/xhebox/noname-linux/issues/2#issuecomment-275704150 2017-01-20 19:25 GMT+08:00 He X <xw897002528@...il.com>: > sorry for my poor english :D > > first, it's not p->domainname but q->domainname in dcngettext:77. > > second, any news about http://www.openwall.com/lists/musl/2016/05/11/81? > strip '.UTF-8' is important, i think. > > irc log: > 18:58 < xhe> @dalias: i must found a bug in bindtextdomain(), and also the > improvement about stripping '.UTF-8' should be merged(my code sucks, > that's for my tests), detailed: http://pastebin.com/3C2APqMH > Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.