summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/debug.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-02-25 11:57:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-02-25 11:59:13 -0800
commitc1415cc98c4bba699f870277b5311ed320df22cc (patch)
tree6c2f96166404906a96ef93390e8e314781c5a8a3 /lisp/emacs-lisp/debug.el
parente65d4d3a5d7748aa742112a6065e1eeeac0275a6 (diff)
downloademacs-c1415cc98c4bba699f870277b5311ed320df22cc.tar.gz
emacs-c1415cc98c4bba699f870277b5311ed320df22cc.tar.bz2
emacs-c1415cc98c4bba699f870277b5311ed320df22cc.zip
Integer overflow cleanups for ports and socklen
* src/process.c (struct sockaddr_and_len, conv_sockaddr_to_lisp) (get_lisp_to_sockaddr_size, Fset_process_datagram_address) (connect_network_socket): Use ptrdiff_t, not int, for signed object sizes. This addresses only a theoretical problem, as in practice these object sizes are less than 2**31, but we might as well use the same style here as elsewhere in Emacs. (string_integer_p): Remove; all uses removed. (Fmake_network_process): Check that port number is in range. When converting an integer-string service, rely on strtol rather than rechecking the string by hand. * src/process.h, src/w32.c (conv_sockaddr_to_lisp): Adjust prototypes to match.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions