This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: again a gettext crash
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: again a gettext crash
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 07 May 2000 12:50:15 -0700
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <200005051329.PAA09071@oberkampf.ilog.fr>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------