GNU bug report logs -
#31946
27.0.50; The NSM should warn about more TLS problems
Previous Next
Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>
Date: Sat, 23 Jun 2018 10:39:02 UTC
Severity: normal
Tags: fixed, security
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #150 received at 31946 <at> debbugs.gnu.org (full text, mbox):
> From: Andy Moreton <andrewjmoreton <at> gmail.com>
> Date: Mon, 26 Aug 2019 18:45:14 +0100
>
> > That's because any memory allocated by GnuTLS cannot be freed by Emacs
> > via 'free' or 'xfree', it needs to be freed by calling 'gnutls_free'
> > (the GnuTLS manual clearly says that, btw). That crashes, because on
> > Windows we use our own implementation of 'free', which uses a
> > different heap.
>
> Agreed, but master built from commit 1071a4f still crashes in the same
> way:
Can you show a recipe?
> In Fgnutls_format_certificate, should out_buf be freed after calling
> build_string ?
I see no problem with that, since build_string copies the data.
> Removing both xfree(out.data) and xfree(out_buf) from the end of
> that function does give me a running emacs.
It may run, but it leaks memory.
This bug report was last modified 5 years and 328 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.