This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/22029] iconv: gconv callback function mangling easily defeated
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 29 Aug 2017 15:33:05 +0000
- Subject: [Bug locale/22029] iconv: gconv callback function mangling easily defeated
- Auto-submitted: auto-generated
- References: <bug-22029-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22029
--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Just dropping the condition __shlib_handle != NULL does not work because
wcsmbs/wcmbsload.c supplies its own struct __gconv_step objects, via the failed
branch in __wcsmbs_load_conv.
We probably need to check for those two objects explicitly because
__wcsmbs_load_conv cannot allocate on the failure path, and we do not want to
move these objects into the .data segment.
--
You are receiving this mail because:
You are on the CC list for the bug.