aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2014-12-09 23:47:16 -0800
committerPaul Eggert2014-12-09 23:47:45 -0800
commit99be75085cec471fa35a811bddaf09fe91fc3452 (patch)
tree40779cfa80181287c13ad44b3a89c03014364d41 /src/ChangeLog
parentc9e3deffab6e9de3a214a3b7f7a5921018fc1a9d (diff)
downloademacs-99be75085cec471fa35a811bddaf09fe91fc3452.tar.gz
emacs-99be75085cec471fa35a811bddaf09fe91fc3452.zip
Fix glitches in gnutls.c, mostly memory-related
* gnutls.c: Sort macro definitions by name. (fn_gnutls_transport_set_errno): Omit unreachable definition. (fn_gnutls_x509_crt_get_signature): Omit unused symbol. (gnutls_hex_string): Arg is now unsigned char *, to avoid a cast. Prefer ptrdiff_t for sizes. Check for arithmetic overflow when calculating string length. Use make_uninit_string, to avoid copying the string. Cast the char, not the pointer. (gnutls_certificate_details): Use xmalloc and xfree, not malloc and free. Work even for dates past the year 9999. Use void * for buffers, to avoid casts.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 762ce486390..09268d1b6cd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12014-12-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix glitches in gnutls.c, mostly memory-related
4 * gnutls.c: Sort macro definitions by name.
5 (fn_gnutls_transport_set_errno): Omit unreachable definition.
6 (fn_gnutls_x509_crt_get_signature): Omit unused symbol.
7 (gnutls_hex_string): Arg is now unsigned char *, to avoid a cast.
8 Prefer ptrdiff_t for sizes. Check for arithmetic overflow when
9 calculating string length. Use make_uninit_string, to avoid
10 copying the string. Cast the char, not the pointer.
11 (gnutls_certificate_details): Use xmalloc and xfree, not malloc
12 and free. Work even for dates past the year 9999. Use void *
13 for buffers, to avoid casts.
14
12014-12-09 Andy Moreton <andrewjmoreton@gmail.com> (tiny change) 152014-12-09 Andy Moreton <andrewjmoreton@gmail.com> (tiny change)
2 16
3 * gnutls.c (gnutls_protocol_get_name): Fix a copy/paste typo. 17 * gnutls.c (gnutls_protocol_get_name): Fix a copy/paste typo.