* assuan-buffer.c (assuan_write_line): If the line is longer than
the maximum line length, bail out early.
+2004-06-08 Marcus Brinkmann <marcus@g10code.de>
+
+ * assuan-buffer.c (assuan_write_line): If the line is longer than
+ the maximum line length, bail out early.
+
2004-04-19 Werner Koch <wk@gnupg.org>
* assuan-socket-connect.c: Include sys/types.h
s = strchr (line, '\n');
len = s? (s-line) : strlen (line);
+ if (len > LINELENGTH - 2)
+ return ASSUAN_Line_Too_Long;
+
/* fixme: we should do some kind of line buffering. */
if (ctx->log_fp)
{