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 locale/22029] iconv: gconv callback function mangling easily defeated


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.

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