[Top][All Lists]

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

[bug-mailutils] [patch] fixed buffer size limits SASL mechanisms

From: Simon Josefsson
Subject: [bug-mailutils] [patch] fixed buffer size limits SASL mechanisms
Date: Sat, 01 Feb 2003 10:09:44 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu)

512 bytes is too small for some mechanisms (e.g. GSSAPI), ideally
auth_gsasl() should check for GSASL_TOO_SMALL_BUFFER return code and
grow the SASL token buffer, up to some sane limit.  2kb makes for a
sane limit (for now), so the following is more simplistic.


Index: auth_gsasl.c
RCS file: /cvsroot/mailutils/mailutils/imap4d/auth_gsasl.c,v
retrieving revision 1.4
diff -u -p -u -w -r1.4 auth_gsasl.c
--- auth_gsasl.c        23 Jan 2003 09:43:07 -0000      1.4
+++ auth_gsasl.c        1 Feb 2003 09:05:59 -0000
@@ -66,7 +66,7 @@ auth_gsasl (struct imap4d_command *comma
             char *auth_type, char *arg, char **username)
   char *input = NULL;
-  char output[512];
+  char output[2048];
   size_t output_len;
   char *s;
   int rc;

reply via email to

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