bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: iconv made easy


From: Paul Eggert
Subject: Re: [bug-gnulib] Re: iconv made easy
Date: Wed, 15 Dec 2004 17:11:13 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> +         outbuf_size *= 2;
> +         ;
> +         if (newdest == NULL)

My only quick thought is that this should be:

   outbuf_size *= 2;
   if (! (outbuf_size
          && (newdest = realloc (dest, outbuf_size))))

so that you fail instead of looping when there's a size overflow.




reply via email to

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