gnutls-cli: handle binary data from stdin

Werner Koch wk at gnupg.org
Wed Jan 27 11:20:05 CET 2010


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






More information about the Gnutls-devel mailing list