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: Werner Koch
Subject: Re: gnutls-cli: handle binary data from stdin
Date: Wed, 27 Jan 2010 11:20:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.





reply via email to

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