diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-12-09 23:47:16 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-12-09 23:47:45 -0800 |
commit | 99be75085cec471fa35a811bddaf09fe91fc3452 (patch) | |
tree | 40779cfa80181287c13ad44b3a89c03014364d41 /lisp/emacs-lisp | |
parent | c9e3deffab6e9de3a214a3b7f7a5921018fc1a9d (diff) | |
download | emacs-99be75085cec471fa35a811bddaf09fe91fc3452.tar.gz |
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 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions