gnutls-cli: handle binary data from stdin

Simon Josefsson simon at
Wed Jan 27 15:49:18 CET 2010

Werner Koch <wk at> writes:

> On Wed, 27 Jan 2010 10:31, simon at 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.


More information about the Gnutls-devel mailing list