krb5_copy_context() dumps core

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

krb5_copy_context() dumps core

Bin Lu
When I do the following:

   Krb5_context k5_ctx, *tmp_ctx;

   //.... (calling krb5_init_contxt(k5_ctx)

   tmp_ctx = (krb5_context*)malloc(sizeof(*tmp_ctx));
   krb5_copy_contxt(k5_ctx, tmp_ctx);

dumps core. Is this a bug?

-binlu


_______________________________________________
krbdev mailing list             [hidden email]
https://mailman.mit.edu/mailman/listinfo/krbdev
Reply | Threaded
Open this post in threaded view
|

Re: krb5_copy_context() dumps core

Greg Hudson
On 06/13/2014 09:42 PM, Bin Lu wrote:
>    tmp_ctx = (krb5_context*)malloc(sizeof(*tmp_ctx));
>    krb5_copy_contxt(k5_ctx, tmp_ctx);
>
> dumps core. Is this a bug?

What version are you using?  krb5_copy_context was broken in 1.8, but
was fixed in 1.12.1, 1.11.5, and on the 1.10 branch (but after the most
recent release on that branch).

https://krbdev.mit.edu/rt/Ticket/Display.html?id=7807
_______________________________________________
krbdev mailing list             [hidden email]
https://mailman.mit.edu/mailman/listinfo/krbdev
Reply | Threaded
Open this post in threaded view
|

RE: krb5_copy_context() dumps core

Bin Lu
It is indeed 1.8 ... need to upgrade.

-----Original Message-----
From: Greg Hudson [mailto:[hidden email]]
Sent: Friday, June 13, 2014 6:52 PM
To: Bin Lu; [hidden email]
Subject: Re: krb5_copy_context() dumps core

On 06/13/2014 09:42 PM, Bin Lu wrote:
>    tmp_ctx = (krb5_context*)malloc(sizeof(*tmp_ctx));
>    krb5_copy_contxt(k5_ctx, tmp_ctx);
>
> dumps core. Is this a bug?

What version are you using?  krb5_copy_context was broken in 1.8, but was fixed in 1.12.1, 1.11.5, and on the 1.10 branch (but after the most recent release on that branch).

https://urldefense.proofpoint.com/v1/url?u=https://krbdev.mit.edu/rt/Ticket/Display.html?id%3D7807&k=tA6TlBY8qGT5vn7CslHigA%3D%3D%0A&r=6r5%2FjJEegECWt%2FHbTRRPSD83SmIJ0CMxl6rMDYmTvAk%3D%0A&m=7h3lW6G1sgz%2FLyNJOaPeevb3aJSIrrWRBJq2TAB00YA%3D%0A&s=6a61a1b934fc3478e7157adcd9608f86d24f460c865448e7f017dbc6d9db6f04

_______________________________________________
krbdev mailing list             [hidden email]
https://mailman.mit.edu/mailman/listinfo/krbdev