Cyrus Login

Andreas andreas at conectiva.com.br
Fri Aug 6 09:44:29 EDT 2004


On Thu, Aug 05, 2004 at 05:05:32PM -0400, Derrick J Brashear wrote:
> On Thu, 5 Aug 2004, Andreas wrote:
> 
> >>Well, do you get a core file?
> >
> >Got a better one, just for completeness.
> 
> Yeah, and I see the problem:
> 
> 
> >#0  0x4027355f in strlen () from /lib/libc.so.6
> >#1  0x4043cceb in _sasl_canon_user (conn=0x82ba478, user=0x4 <Address 0x4 
> >out of bounds>, ulen=0, flags=3,
> >   oparams=0x82bacd8) at canonusr.c:103
> >#2  0x405aadf9 in crammd5_client_mech_step (conn_context=0x82a0b00, 
> >params=0x8064740,
> >   serverin=0x8219b87 
> >   "<3453085174.1206254 at pandora.conectiva>NvbmVjdGl2YT4=", serverinlen=38,
> >   prompt_need=0xbffff480, clientout=0xbffff484, clientoutlen=0xbffff488, 
> >   oparams=0x82bacd8) at cram.c:581
> 
> Try this patch:
> --- plugins/cram.c      15 Dec 2003 20:04:22 -0000      1.83
> +++ plugins/cram.c      5 Aug 2004 21:06:06 -0000
> @@ -507,7 +507,7 @@
>                                     sasl_out_params_t *oparams)
>  {
>      client_context_t *text = (client_context_t *) conn_context;
> -    const char *authid;
> +    const char *authid = NULL;
>      sasl_secret_t *password = NULL;
>      unsigned int free_password = 0; /* set if we need to free password */
>      int auth_result = SASL_OK;

That fixed it. Should it be applied to 2.1.19 too?

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list