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]

Re: again a gettext crash


Bruno Haible <haible@ilog.fr> writes:

> Here are tweaks of small mistakes I made in the previous patches.
> a. The size passed to gconv/iconv for its output buffer is larger than the
>    room that's really present.
> b. After allocation failure for freemem, set freemem_size to 0, otherwise the
>    next call will think that freemem is valid and make a NULL pointer access.
> c. A portability problem: Use of __alignof__ is gcc specific.

Thanks, I've applied the patch.  I made a few changes which don't
change the code itself but help documenting what's going on.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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