gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnutls-cli: handle binary data from stdin


From: Simon Josefsson
Subject: Re: gnutls-cli: handle binary data from stdin
Date: Wed, 27 Jan 2010 15:49:18 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Werner Koch <address@hidden> writes:

> On Wed, 27 Jan 2010 10:31, address@hidden said:
>
>> text-oriented assumptions in the code.  However I believe we should use
>> getline instead of fgets/read to avoid the fixed size buffer.  It should
>> handle binary data transparent.
>
> But it will resize the buffer as needed and thus it can easily eat up
> all RAM available to the process and other code will cease to work.  In
> particular on small devices this is a problem.

Good point.  I'll use the original patch.

/Simon




reply via email to

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