[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: null iconv outbuf

From: Petter Reinholdtsen
Subject: Re: null iconv outbuf
Date: Thu, 22 Jul 2004 09:03:00 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v)

[Ilya N. Golubev, 2003-04-22]
> Versions: all at least since 20-Apr-98
> `charset.texi' says about iconv():
>> If @var{outbuf} or @address@hidden is a null pointer, the
>> conversion is performed but no output is available.
> But `iconv.c' unconditionally dereferences `outbuf', at least when
> !(__builtin_expect (inbuf == NULL || *inbuf == NULL, 0))
> This causes segv when `outbuf' is a null pointer.
> I do not submit a patch since I have not figured out which output
> pointers are allowed by `__gconv' called by `iconv'.

This sounds like a bug in the documentation or the implementation.
But I'm not sure if the glibc maintainers read this list.  You should
consider submitting your bug to the glibc bugzilla, available from

reply via email to

[Prev in Thread] Current Thread [Next in Thread]