aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2014-12-27 23:44:25 -0800
committerPaul Eggert2014-12-27 23:45:46 -0800
commitb54f5721bfb6bf21cac5402cf34a8130e11bfb70 (patch)
tree69b72a16ac4ad7522ef061870f85c95b1e60caac /src/ChangeLog
parent433af0a06089885f5a57ef0f3e7d6283e8d51bd5 (diff)
downloademacs-b54f5721bfb6bf21cac5402cf34a8130e11bfb70.tar.gz
emacs-b54f5721bfb6bf21cac5402cf34a8130e11bfb70.zip
Port memory-full checking to GnuTLS 3.3
Instead of using gnutls_global_set_mem_functions, check every call to a GnuTLS function that might return an indication of memory exhaustion. Suggested by Dmitry Antipov in: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html * src/gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove. (init_gnutls_functions): Do not load gnutls_global_set_mem_functions. (fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove. All uses removed. (check_memory_full): New function. (emacs_gnutls_handshake, emacs_gnutls_handle_error) (gnutls_make_error, Fgnutls_boot): Use it. (emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2df83082fbd..3ea60571a15 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,19 @@
12014-12-28 Paul Eggert <eggert@Penguin.CS.UCLA.EDU>
2
3 Port memory-full checking to GnuTLS 3.3
4 Instead of using gnutls_global_set_mem_functions, check every call
5 to a GnuTLS function that might return an indication of memory
6 exhaustion. Suggested by Dmitry Antipov in:
7 http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg02056.html
8 * gnutls.c (gnutls_global_set_mem_functions) [WINDOWSNT]: Remove.
9 (init_gnutls_functions): Do not load gnutls_global_set_mem_functions.
10 (fn_gnutls_global_set_mem_functions) [!WINDOWSNT]: Remove.
11 All uses removed.
12 (check_memory_full): New function.
13 (emacs_gnutls_handshake, emacs_gnutls_handle_error)
14 (gnutls_make_error, Fgnutls_boot): Use it.
15 (emacs_gnutls_global_init): Avoid gnutls_global_set_mem_functions.
16
12014-12-25 Eli Zaretskii <eliz@gnu.org> 172014-12-25 Eli Zaretskii <eliz@gnu.org>
2 18
3 * xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in 19 * xdisp.c (set_iterator_to_next) <GET_FROM_STRING>: Limit search in