[PATCH] Stop use after free

Richard Sharpe realrichardsharpe at gmail.com
Wed Sep 25 08:22:15 MDT 2013

On Tue, Sep 24, 2013 at 11:16 PM, Alistair Leslie-Hughes
<leslie_alistair at hotmail.com> wrote:
> Hi,
> The reply_arg variable can be use after it has been free. This is just a
> copy from the source4 version.
> Should fix
> https://bugzilla.samba.org/show_bug.cgi?id=10087

I think you are using the wrong memory context for the
talloc_asprintf. You should use mem_ctx because the one you use could
have a much longer lifetime than you think.

Richard Sharpe

More information about the samba-technical mailing list